Advertisement:

Author Topic: Translations in themes  (Read 2542 times)

silktech

  • Newbie
  • *
  • Posts: 11
Translations in themes
« on: June 16, 2011, 11:52:00 am »
I am trying to create a new theme. Actually i duplicated modern theme and changed modern_theme_info() function to myname_theme_info (i think it was redeclaring the same function if i didn't) so that to make some changes and not lose it in the next update... may be this is not the right way.
As a result when i activate my theme many of the translations do not appear, and english appear instead.
Can i fix this or i have to make changes in modern theme... and in that case will i lose everything in the next update?
Thanks in advance

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: Translations in themes
« Reply #1 on: June 16, 2011, 02:35:17 pm »
I am trying to create a new theme. Actually i duplicated modern theme and changed modern_theme_info() function to myname_theme_info (i think it was redeclaring the same function if i didn't) so that to make some changes and not lose it in the next update... may be this is not the right way.
As a result when i activate my theme many of the translations do not appear, and english appear instead.
Can i fix this or i have to make changes in modern theme... and in that case will i lose everything in the next update?
Thanks in advance

Could you try to change in __ and _e function the word modern for your theme name? After that change it should work fine :)

silktech

  • Newbie
  • *
  • Posts: 11
Re: Translations in themes
« Reply #2 on: June 16, 2011, 02:39:13 pm »
Yes, it worked fine!

ANDREPEREIRA

  • Newbie
  • *
  • Posts: 36
Re: Translations in themes
« Reply #3 on: June 24, 2011, 07:20:28 am »
Portuguese pt_Br translation is 100% finished.
« Last Edit: June 25, 2011, 06:28:01 am by ANDREPEREIRA »

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: Translations in themes
« Reply #4 on: June 27, 2011, 06:29:52 pm »
Portuguese pt_Br translation is 100% finished.
Thank you very much! I've uploaded pt_BR: https://sourceforge.net/projects/osclass/files/Languages/pt-BR/