Advertisement:

Author Topic: Language pt-br of realestate theme affect language of OSClass  (Read 1667 times)

gede

  • Newbie
  • *
  • Posts: 12
Hello!
I installed the pt_BR language(portuguese, Brazil) by admin osclass, but some parts of realestate theme in open area are untranslated, the form of "Publish an item".
I created a folder pt_BR and put my theme.po file(realestate/languages/pt_BR) and generate the theme.mo using PoEdit, the problem is:
- My translation works but the translation of OSCLass is loose, my buttom "Publish your ad for free" back to english.

I can not use another folder called pt_BR into folder "languages" of theme to translate only this parts that not have the translation?
Thanks!

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: Language pt-br of realestate theme affect language of OSClass
« Reply #1 on: June 25, 2014, 07:49:06 pm »
Hi, creating a new directory for the same file pointed to translation does not seem to be a good idea. However something must be wrong in PoEdit configuration, or lack of translation parameter _e ('publish', 'theme name') _e('publish an item', 'theme name').

Put here the code of the item-post.php file to check if everything is ok.

Regards

gede

  • Newbie
  • *
  • Posts: 12
Re: Language pt-br of realestate theme affect language of OSClass
« Reply #2 on: June 25, 2014, 10:57:04 pm »
Hello fog!
My item-post.php:

Code: [Select]
<h1><strong><?php _e('Publish an item''realestate'); ?></strong></h1>
My realestate/languages/pt_BR/theme.po:

Code: [Select]
msgid ""
msgstr ""
"Project-Id-Version: realestate\n"
"POT-Creation-Date: 2014-06-25 11:17-0300\n"
"PO-Revision-Date: 2014-06-25 15:46-0300\n"
"Last-Translator: OSClass <info@osclass.org>\n"
"Language-Team: OSClass <info@osclass.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-KeywordsList: _;gettext;gettext_noop\n"
"X-Poedit-Basepath: .\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Poedit-Language: Portuguese\n"
"X-Poedit-Country: BRAZIL\n"
"X-Poedit-SourceCharset: utf-8\n"

# others lines

#: item-edit.php:35
#: item-post.php:37
msgid "Publish an item"
msgstr "Publicar um item"


Now I got a reversed translation error, "Publicar um item" in item-post.php(that's ok) and "Publish your ad for free"(must be in pt-br) in buttom:

Thanks!
« Last Edit: June 25, 2014, 11:03:12 pm by gede »

gede

  • Newbie
  • *
  • Posts: 12
Re: Language pt-br of realestate theme affect language of OSClass
« Reply #3 on: June 26, 2014, 11:02:50 pm »
Does the problem is that the file theme.mo of the theme realstate is overwriting the file theme.mo of OSClass installed by admin?
How do I fix this? I put what I need into theme.po of OSClass and ignore the theme.po of realestate?