Advertisement:

Author Topic: Need from sr-RS, sr-CS or hr-HR Language pack  (Read 424 times)

didkap84

  • Full Member
  • ***
  • Posts: 195
Need from sr-RS, sr-CS or hr-HR Language pack
« on: September 10, 2018, 06:01:11 pm »
Hi, I have a need from sr-RS, sr-CS or hr-HR Language pack. Please help me.  :-\

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: Need from sr-RS, sr-CS or hr-HR Language pack
« Reply #1 on: September 10, 2018, 08:01:37 pm »
Hi,

First you need to be sure about lang code.
You can use a code table on some website with that information... I found this, I think this table can be right: http://www.lingoes.net/en/translator/langcode.htm

You can add manually your language pack, how?

Follow the steps:
1 - Install notepad ++ if you not have it installed on your computer.
2 - Open on osclass directory: oc-content/languages.
3 - Copy the en_US folder and paste on your desktop.
4 - Rename en_US folder to your lang code desired (let's suppose is "sr_RS") .
5 - On your own folder renamed "sr_RS", now you need open index.php, and change name of the function: locale_en_US_info() to: locale_sr_RS_info()
6- You need change too: name, short_name and description.
7 - drag and drop inside notepad ++ the sql file named: mail.sql, locate on first line the word: en_US, you need underline it, and click on "search" and "replace". Now you need replace with: "sr_RS" and click replace all. Check all lines, if all with word "en_US" was replaced with sr_RS.

8 - Now you need zip your sr_RS folder, and your language pack is ready.
9 - On osclass admin settings you need open: languages page
10 - Click on button: add new, and locate your sr_RS.zip and upload.
11 - Enable the language to frontend too.

Ok, now you have installed a new osclass language. Check the mail templates if really exists your new language there.

Now all the process to admin translation, need be done by you manually too, with poedit program on: messages.po and theme.po

Take note that translation is only to admin dashboard.

If you need translate your theme with new language, you need follow the rest of steps:

12 - on directory: oc-content/themes/name_of_your_theme/languages/en_US
13 - Copy en_US to your desktop, and rename it to: sr_RS
14 - Move sr_RS to: oc-content/themes/name_of_your_theme/languages/
15 - Open sr_RS folder, and open theme.po with poedit program, and do your translation.

Just that.
Good luck with your all steps, and never, but never, open .mo files, or trying o translate directly without poedit. That is a big mistake. use only poedit program to translation to avoid issues and irreversible errors.

Regards

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: Need from sr-RS, sr-CS or hr-HR Language pack
« Reply #2 on: September 10, 2018, 08:46:47 pm »
Sorry, I not saw this, but your topic are on plugins section.
You can do the same process on plugin folder, if really exist the language folder with en_US inside. You can start for 12º step to do the process.

Regards

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: Need from sr-RS, sr-CS or hr-HR Language pack
« Reply #3 on: September 10, 2018, 09:04:23 pm »
Hi, I have a need from sr-RS, sr-CS or hr-HR Language pack. Please help me.  :-\

Hello,

You mean a core translation or a translation of specific plugin (you posted in plugin section)? I have few Croatian core language packs from other sites.

Regards.