WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Changing language (11 posts)

  1. Pontusande
    Member
    Posted 7 years ago #

    Hello!

    Im testing wordpress but i cant get my new language settings running.

    I have no idea what's wrong, i changed the
    define ('WPLANG', ''); into:
    define ('WPLANG', 'sv_SE');

    and uploaded the .mo file into the correct folder.

    The url is: http://www.hofvet.com/blogg if that is to any help.

    Thank you in advance!

  2. Pontusande
    Member
    Posted 7 years ago #

    Nobody knows what's wrong?

    I would really appreciate a solution but i cant find it myself.

  3. moshu
    Member
    Posted 7 years ago #

    What exactly do you mean by "cant get my new language settings running"?

    As far as I can see, the login page is translated, which means the admin panel should be in Swedish, too.

    If you meant the frontend = the theme you are using, then you should be aware that every theme has to have its own translation. Of course, if it is prepared for localization at all.

  4. Pontusande
    Member
    Posted 7 years ago #

    I see, i missunderstood the whole changing language thing, i thought you could change the language of the blog itself using the .mo files.

    Anyway, can i change the language of the blog manually? In other words by modifying the language in the .php files that build the blog?

    Thank you!

  5. moshu
    Member
    Posted 7 years ago #

    Define "change the language".
    What is it exactly that you want? (It is always better if you describe the desired end-result...)

  6. Pontusande
    Member
    Posted 7 years ago #

    Yes, sorry.

    What i mean by changing the language is to change the language of everything that the visitors of my blog sees and read.

    Ofcorse i know i can rewrite the posts etc to be displayed in my language, but for example the "Search" text displayed in the upper corner and such other details that cannot be changed from within the wordpress admin site.

    Other examples are:
    *The text that appears when you search for something and get no hits "No posts found. Try a different search?"

    *The text related to comments, such as "One Response to “Hello world!”" and "user ¨¨Says¨¨: "

    *Text on buttons, for example the "Submit Comment" text in the leave a reply area.

    I hope this cleared up some of the confusion, sorry for beeing indistinct about what i want to achieve with this post.

    Thank for helping me!

  7. moshu
    Member
    Posted 7 years ago #

    Well, if I remember well, except the "search result: no post found" - all the other strings should be translated in the theme's localized version.

    You can do it manually, by opening the theme template files in a plain text editor and replacing the English text.

    Another option could be to have a .po > .mo file for the theme... which, unfortunately, will not work with your theme because its author doesn't really care about non-English users and the theme is NOT internationalized (i18n), in other words it is NOT prepared for localization (l10n).

    So, your only option with this theme is manually translate all the strings.

    If you find a theme that is better prepared for translation, see these articles:
    http://codex.wordpress.org/Translating_WordPress
    http://boren.nu/archives/2004/11/01/localizing-plugins-and-themes/

  8. Pontusande
    Member
    Posted 7 years ago #

    Thank you very much Moshu! Now i know how to change the language :)

    I have now changed some of the words, but to my suprise i notice that (some of) the swedish characters Å, Ä and Ö shows up as ?, ? and ? on the blog. Why?

    Example: http://www.hofvet.com/blogg/?p=1

    Thank you for the help, wordpress was a good choice it seems :)

  9. moshu
    Member
    Posted 7 years ago #

    swedish characters Å, Ä and Ö shows up as ?, ? and ? on the blog. Why?

    Because you edit the files in an editor that does NOT have utf-8 support... or because you didn't set it right :)

    Even the very simple Win Notepad has that option - when clicking Save, at the bottom of the dialog window you have an "Encoding" dropdown where you should select utf-8.

  10. Pontusande
    Member
    Posted 7 years ago #

    Thanx!

    This is among the best support i have ever experienced, and that's on a free software!

    Thank you again moshu.

  11. moshu
    Member
    Posted 7 years ago #

    You were lucky :) having a non-English speaker volunteer helper around... (just kidding)

    Glad you worked it out. Can you mark this as "resolved" (up where the title is)?

Topic Closed

This topic has been closed to new replies.

About this Topic