• Resolved pontusande

    (@pontusande)


    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: https://www.hofvet.com/blogg if that is to any help.

    Thank you in advance!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter pontusande

    (@pontusande)

    Nobody knows what’s wrong?

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

    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.

    Thread Starter pontusande

    (@pontusande)

    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!

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

    Thread Starter pontusande

    (@pontusande)

    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!

    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:
    https://codex.www.ads-software.com/Translating_WordPress
    https://boren.nu/archives/2004/11/01/localizing-plugins-and-themes/

    Thread Starter pontusande

    (@pontusande)

    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: https://www.hofvet.com/blogg/?p=1

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

    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.

    Thread Starter pontusande

    (@pontusande)

    Thanx!

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

    Thank you again moshu.

    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)?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Changing language’ is closed to new replies.