Translating into Bahasa Indonesia

howto
ojs3
Tags: #<Tag:0x007f4841a24aa0> #<Tag:0x007f4841a248e8>

#1

Hi @mtub,
I am currently translating OJS into Bahasa Indonesia. Right now I am facing a difficulty in translating. For an example, when I am trying to translate ##admin.scheduledTask.clearLogs##, it won’t change. I wonder what wrong since I had change it in the xml file.

Here are the screenshots.

And where can I find the code for this “log in</em> ke sistem akan dipaksa untuk log in</em> lagi (termasuk diri Anda).”)">Akhiri Sesi Pengguna"?

Regards,

nonoway


How to Fix Translation in User Role
#2

Hi @nonoway, thank you for working on a translation. I hope that you will be able to update the translation and make it available so that we can include it in one of the future OJS releases.

There is some documentation available at https://pkp.sfu.ca/wiki/index.php?title=Translating_OxS and at https://pkp.sfu.ca/wiki/index.php?title=Github_Documentation_for_PKP_Contributors.

The translations are all hosted on GitHub as part of the PKP repositories, mostly

The second key you’ve mentioned is actually part of the pkp-lib repository, not of the OJS repository. You will find it in locale/id_ID/admin.xml as admin.confirmExpireSessions. The first key you’ve mentioned (admin.scheduledTask.clearLogs) is in the same file – where did your put your translation when it wasn’t used by OJS?


#3

Hi @mtub, thanks for your respond.

Sorry but I don’t get it, what do you mean when it wasn’t used?

Aah so I need to change the xml files in js/locale/id_id not in ojs/lib/pkp/locale?

Thanks


#4

Hi @nonoway,

what I meant is: You described that you put a translated key into one of the files, and it did not appear in your OJS installation. My question is: In which file did you put your translation?

When translating, you should keep your translation in the same structure and files you can see in the en_US locales. Depending on what part of OJS you are translating, you will find these files in

(these files are part of https://github.com/pkp/ojs/ : )

  • /locale/en_US (and /locale/id_ID)
  • /plugins/(plugin directory)/locale/en_US (and …/locale/id_ID)

(these files are part of https://github.com/pkp/pkp-lib/ : )

  • /lib/pkp/locale/en_US (and /lib/pkp/locale/id_ID)
  • /lib/pkp/plugins/(plugin directory)/locale/en_US (and …/locale/id_ID)

There are a few plugins that are not part of the OJS code but are hosted separately.

Generally speaking: If you find a missing key you want to translate, look in which of the en_US files you can find that key and put your translation in the corresponding id_ID file.


#5

Hi @mtub,

I have translated most of the files and I would like to contribute it so people can use it… what should I do? But still I hope there will be someone who will recheck my translation cause I am not sure it is the right translation… Anyway thanks for the help!


#6

Some contributions to the id_ID locale have appeared. It would be best to make sure everyone knows about each other’s work and maybe work together. See https://github.com/pkp/ojs/pull/1258 and https://github.com/pkp/ojs/pull/1272