bagit-java icon indicating copy to clipboard operation
bagit-java copied to clipboard

Internationalize bagit

Open johnscancella opened this issue 8 years ago • 16 comments

Bagit should use the Java standard way for internationalize all messages. This way Bagit can be used by others that don't understand english.

johnscancella avatar Apr 26 '17 11:04 johnscancella

see http://docs.oracle.com/javase/tutorial/i18n/intro/after.html for example

johnscancella avatar Apr 26 '17 11:04 johnscancella

see https://docs.transifex.com/client/introduction for translating

johnscancella avatar Apr 26 '17 13:04 johnscancella

Help is wanted to translate into other languages:

  • [x] English
  • [ ] Chinese
  • [x] Spanish
  • [ ] Arabic
  • [ ] Portuguese
  • [ ] Japanese
  • [ ] Russian
  • [ ] Malay
  • [ ] French
  • [ ] German

(from the top 10 listing of internet languages https://www.accreditedlanguage.com/2016/09/13/top-10-languages-used-on-the-internet/)

johnscancella avatar Apr 27 '17 18:04 johnscancella

TODO add gradle task to check that all messages used are in each messageBundle

johnscancella avatar Apr 27 '17 18:04 johnscancella

Transifex says:

This organization's trial has ended. To keep using Transifex, please ask one of the organization's administrators to subscribe to a plan.

And moreover it seems to be ugly HTML on Transifex instead of Java ResourceBundle.

buslov avatar Dec 11 '17 19:12 buslov

@acdha suggestions? You know Transifex better than I do

johnscancella avatar Dec 11 '17 19:12 johnscancella

It looks like Transifex changed their subscription system recently so I had to switch to the open source plan to unlock it.

I don't know what format was configured for bagit-java but Transifex supports Java properties files so that appears to be an error loading data into the system.

acdha avatar Dec 11 '17 21:12 acdha

After uploading the properties file manually, it looks fine:

https://www.transifex.com/acdha/bagit-java/translate/#ru/messagebundleproperties/112102491

I suspect what happened before was that it had the URL to the GitHub HTML view of the file rather than the raw file itself.

acdha avatar Dec 11 '17 21:12 acdha

One other thing to consider: we should probably move this to a separate organization once it's out of testing status so it's not anchored to my personal account.

acdha avatar Dec 11 '17 21:12 acdha

@acdha yes, we should talk to @dbrunton about that

johnscancella avatar Dec 12 '17 12:12 johnscancella

Hello, working on a Swedish translation and noticed that other translations translate the bagit specification reserved metadata elements. Is this the preferred way? //A

Segerberg avatar May 31 '18 09:05 Segerberg

@Segerberg Thanks for contributing by translating to Swedish! I'm not sure what you mean, could you give me an example? In general I have left it up to the translator to determine if a specific word should be kept in english or not so that they can choose the best message they can. All {} need to be preserved as they are place holders for information that is passed in during runtime.

johnscancella avatar May 31 '18 13:05 johnscancella

Sorry for being unclear! For our use we wish to keep the original naming of the reserved elements as stated in the specification Bag-Size, source-organization etc...(for correct reference amongst other things). When i checked other translations they consequently translates these. But if it's up to me I'll keep them in english! Happy to continue talk but it maybe better to do it crowdin !

Segerberg avatar May 31 '18 14:05 Segerberg

That sounds good to me, and thanks again for all the hard work!

johnscancella avatar May 31 '18 16:05 johnscancella

Hello @johnscancella the Swedish translation is finished. Do you need som external review before commiting or do you trust me? =)

Segerberg avatar Oct 30 '18 09:10 Segerberg

@Segerberg I no longer work at the Library of Congress. Perhaps @acdha or @dbrunton will be able to merge it for you.

jscancella avatar Oct 30 '18 11:10 jscancella