Codoforum related discussions
(SOLVED) Missing in locale

Hello,

I have translated my forum to polish language but still many (backend too) texts are in english.

Translated everything into polish in locale file (constants.php changed to pl_PL) but still missing those:

  • Whole BackEnd is still in english and i can't find any file with it's text
  • "replies/views" at homepage
  • "read more" at homepage
  • "posted" at homepage
  • "search" at post and homepage
  • after click at avatar it gives still "Profile, Edit, Logout"

  • Notifications locale missing, examples below

Hide topic messages
Enable infinite scrolling
Notifications in topbar

Notification level
New replies/topics/mentions
Unread count next to topic
Email notifications

Can i do anything with that? I really like this forum and i want to describe all of it smile

Forum link: http://gof.nadroida.pl/

Hello, I have translated my forum to polish language but still many (backend too) texts are in english. Translated everything into polish in locale file (constants.php changed to pl_PL) but still missing those: - Whole BackEnd is still in english and i can't find any file with it's text - "replies/views" at homepage - "read more" at homepage - "posted" at homepage - "search" at post and homepage - after click at avatar it gives still "Profile, Edit, Logout" - Notifications locale missing, examples below > Hide topic messages > Enable infinite scrolling > Notifications in topbar > Notification level > New replies/topics/mentions > Unread count next to topic > Email notifications Can i do anything with that? I really like this forum and i want to describe all of it :) Forum link: http://gof.nadroida.pl/
edited Nov 16 '14 at 7:00 pm

Whole BackEnd is still in english and i can't find any file with it's text

We have not yet translated the backend.

As for the frontend, it happened due to one of the recent changes in V2.5
We have fixed it in our codebase.

>Whole BackEnd is still in english and i can't find any file with it's text We have not yet translated the backend. As for the frontend, it happened due to one of the recent changes in V2.5 We have fixed it in our codebase.

@adesh I am using newest version so can i somehow translate those missing words?

@adesh I am using newest version so can i somehow translate those missing words?

Open sys/CODOF/HB/Render.php

Replace any instances of function _() by _t()

Then, you have to again replace the function _() by _t() in the .tpl files in
sites/all/default/themes/default/templates

If you open Codoforum folder using Netbeans/Eclipse you can do this very fast.

Open `sys/CODOF/HB/Render.php` Replace any instances of function `_()` by `_t()` Then, you have to again replace the function `_()` by `_t()` in the .tpl files in `sites/all/default/themes/default/templates` If you open Codoforum folder using Netbeans/Eclipse you can do this very fast.

@adesh
I have changed that but templates didn't had any _() to change coz they had _t().

But still it is in english language. I should now add something like this into locale?

  'Hide topic messages' => 'Ukryj treść tematów',

EDIT: Got it! Thanks! smile

@adesh I have changed that but templates didn't had any _() to change coz they had _t(). But still it is in english language. I should now add something like this into locale? ```` 'Hide topic messages' => 'Ukryj treść tematów', ```` EDIT: Got it! Thanks! :)
edited Nov 15 '14 at 5:31 pm

@Gerry
In render.php find

_(

and replace all of it with

_t(

Go into

sites/all/default/themes/default/templates

And open all files in this directory and all files in sub folders
Then change

_(

To the

_t(

After that remember to add missing locales into Yours locale file, all _t( after that have a words like 'Delete' and u have to add it into locale file (pl_PL for example) like this

'Delete' => 'Your Localization',

It takes much time but it is worth it smile

You can check my forum to see it is whole translated.
http://gof.nadroida.pl

@Gerry In render.php find ```` _( ```` and replace all of it with ```` _t( ```` Go into ```` sites/all/default/themes/default/templates ```` And open all files in this directory and all files in sub folders Then change ```` _( ```` To the ```` _t( ```` After that remember to add missing locales into Yours locale file, all _t( after that have a words like 'Delete' and u have to add it into locale file (pl_PL for example) like this ```` 'Delete' => 'Your Localization', ```` It takes much time but it is worth it :) You can check my forum to see it is whole translated. http://gof.nadroida.pl
edited Nov 16 '14 at 8:21 am

when you use the _t() function and run the forum once,
it automatically adds translation keys in your en_US locale files.

You just have to copy the en_US and change the array values.

when you use the _t() function and **run the forum once**, it automatically adds translation keys in your en_US locale files. You just have to copy the en_US and change the array values.

Hello @Gerry
To fix that you have to edit "posted" in this template file.
Open topics.html and find "POSTED" (after i18n)

<span><span id="posted_txt">{{{i18n "POSTED"}}} </span>{{post_created}}</span>

And then change it to "YOUR TRANSLATION", change only this "posted" text to translate it

<span><span id="posted_txt">{{{i18n "YOUR TRANSLATION"}}} </span>{{post_created}}</span>
Hello @Gerry To fix that you have to edit &amp;quot;posted&amp;quot; in this template file. Open topics.html and find &amp;quot;POSTED&amp;quot; (after i18n) ```` &amp;lt;span&amp;gt;&amp;lt;span id=&amp;quot;posted_txt&amp;quot;&amp;gt;{{{i18n &amp;quot;POSTED&amp;quot;}}} &amp;lt;/span&amp;gt;{{post_created}}&amp;lt;/span&amp;gt; ```` And then change it to &amp;quot;YOUR TRANSLATION&amp;quot;, change only this &amp;quot;posted&amp;quot; text to translate it ```` &amp;lt;span&amp;gt;&amp;lt;span id=&amp;quot;posted_txt&amp;quot;&amp;gt;{{{i18n &amp;quot;YOUR TRANSLATION&amp;quot;}}} &amp;lt;/span&amp;gt;{{post_created}}&amp;lt;/span&amp;gt; ````
edited Nov 16 '14 at 12:19 pm

make sure you delete all files in cache/HB/compiled as these files are cached with original En_US locale.

make sure you delete all files in cache/HB/compiled as these files are cached with original En_US locale.
447
9
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft