Write one post in different language?

  • The language of my blog is English. But let’s say I want to write one post in some other language (a language that is already supported by wordpress.com), how can I do it?
    Thanks

  • It’s my understanding that you can set your blog to only one language. And I do not believe that you can change the blog settings for language on just one post without effecting the whole blog. This thread may contain some information for you https://en.forums.wordpress.com/topic.php?id=6979

  • Considering the numbers of people who are bi- or multilingual, this might be a good idea to suggest to WordPress, a way to select the language for individual posts.

  • uhm, I don’t get it — what’s the problem with writing arbitrary posts in another language?

    lack of spell-checking support is the only thing I can think of.

  • Wouldn’t the difference be in alphabets? If the alphabet is the same, you wouldn’t need to change anything at all.

  • /nod to kimik0
    I agree that this would be a good suggestion to make to staff. I assume that problems would arise if one language was left-to-right and the other was right-to-left though. And I think that if such an option is introduced it would be mostly likely be on the basis of a paid upgrade.

    As the OP was addressing only a single post and said: “a language that is already supported by wordpress.com” I assumed this was a question about changing blog language in settings on the General Options page in order to obtain diacritical marks, etc.

    But as raincoaster says if the alphabets are the same then blog settings aren’t an issue and there’s nothing preventing this blogger from creating posts in different languages right now.

  • I can’t see any issues neither with RTL languages, nor diacritical marks.

    a different language can be used as within a separate post or even mixed in the same one as well.

    לשלוט עולם UTF-8

  • Thanks for posting again. That’s good news for vsankarv. :)

  • You wouldn’t happen to have a link to a tutorial? See the danger of showing your knowledge? People make you work!

  • What is the language doesn’t contain the same set of alphabets as English. For example, if I want to write a post in Hindi or Tamil, how would that be possible. Or let’s say I just want to write a sentence or a couple of words in that language in a specific post. Would that be possible?
    timethief, I already did a search in the forums before I posted this thread… and looked at the link that you gave. Apparently, I thought that it won’t solve my issue. Hence I opened this thread.
    options, you exactly mentioned that we can mix and match different languages even within a post. That’s exactly what I want. But how do I do that? Can you help.
    Thanks.

  • no special actions from the user part is required — just make sure your blog is set up to publish in the ‘utf-8’ charset encoding (default setting) and switch an input language selector (depends on your OS) whenever you want, as you would do typing bilingual text in any text editor.

    there are a lot of folks who post in Hindi/Tamil *and* English over here, didn’t you ever run across such wp.com blogs?

    here is some random Hindi (traditional) letters: बहगदजदजोिपरपऱखथखछथं
    and here is some Farsi ones: ضصثقفغعهخحشسیبلاتنمک

    I really can’t understand what the problem is?

  • Isn’t the language setting for a blog or post used somewhere in communication with search engines and blog indices? Or do they figure out what language a post is in automagically?

    There is the HTML lang attribute, but you’d have to wrap your entire post in an extra < div > to make the attribute apply to all of it, and that still wouldn’t include the title.

    Readers generally won’t need such a language tag because they can figure it out themselves as long as it is a language they understand. Those who don’t would be helped by letting them know what translation to ask for from a translation site.
    And what about screen readers? They need to know how to pronounce the text of your post. Language attributes would help there too.

    Resources:
    http://tlt.its.psu.edu/suggestions/international/web/tips/langtag.html
    http://www.w3.org/International/articles/language-tags/Overview.en.php

  • kimik0 brought up some good points. The blog language is for categorizing and searching/translating.

    If you want an entire entry to be another language, you won’t be able to assign it to the header, but you could to the contents. That is shown in the “Switching Languages” section of first link kimik0 provided. You’d need to add the surrounding element (div, P, etc) and lang attribute manually in the Code tab of the editor. The same concept would apply for just part of an entry being in another language.

    I don’t know if WordPress will strip out the “lang” attribute like it does to some others (as I am not multi-lingual), but you can give it a shot.

  • There is the HTML lang attribute, but you’d have to wrap your entire post in an extra < div > to make the attribute apply to all of it, and that still wouldn’t include the title.

    All <div> tags are stripped out by wordpress.com programming.

  • They are? You can use < span > or < p > then. I know < span > isn’t, because the visual editor litters posts with them.

  • The span tag works but the stripping of <div> tags is a long standing problem https://en.forums.wordpress.com/topic.php?id=11555

  • dupe removed – sorry

  • That’s why I gave P as an example. I figured DIV gets stripped. I use P to control text flow sometimes because it keeps wanting to do funky spacing, etc. I’d use a SPAN, but WordPress also strips almost all “style” attribute values.

  • Exactly — wordpress.com will strip almost all “style” attribute values.

  • it’s still not clear what particular issues with typing bilingual texts is having the OP. based on his questions, hardly they have something to do with indexing, accessibility and such mentioned above, although all them are pretty valid points.

    AFAIK, WP uses language options setting to:
    * utilize localised resource strings (translate.wordpress.com) for readers convinience;
    * list same lang. “Hawt Posts” on .com front-page;
    * and probably (not sure, but that’d be logical) jump to the same lang. random blog following “Next” link on admin-bar.

    as for how SEs identify a human language of web document — there’s not too much information (at least known to me) published. I beleive there a number of factors affecting on determination, including heuristic approaches. for example, there’s a relatively recent Yahoo guidance:

    To detect the language of a page, we analyze the page content, the top level domain that your site is hosted on, and the language and region of the documents associated with your site. We also use the http-equiv=”Content-Language” tag as an important input.
    <meta http-equiv="Content-Language" content="en"/>–indicates that the page is expected to be in English. However, this is not our only input and if this is incorrect, we will still try and make our best judgment on the actual language of the page.

    .com for instance instead does set ‘LANG’ property of an html element (according with official W3C recommendations). perhaps, in some future they could implement a support for multy-lang blogs using the ‘link=alternate lang=xx’ semantics.

  • The topic ‘Write one post in different language?’ is closed to new replies.