BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Localization platform

Open Mant1kor opened this issue 7 years ago • 27 comments

It would be nice to use a more convenient tool for translating BookStack. Centralized management and tracking of new words/phrases and all the other benefits of a localization platform. I recommend to try Crowdin or Transifex (they're free for Open Source project, see Q&A).

Mant1kor avatar Feb 05 '19 23:02 Mant1kor

Good suggestion.

I had a look at such platforms a while back but didn't get too far. Would be good to get some input from someone that has used such systems for a similar project to BookStack or some general examples of use in other open-source projects.

ssddanbrown avatar Feb 06 '19 00:02 ssddanbrown

I have experience only as an translator. https://www.transifex.com/customers/ https://crowdin.com/page/customer-testimonials You have to look at automatization between git and localization platform, to push or pull translation files.

Mant1kor avatar Feb 06 '19 16:02 Mant1kor

Transifex is used for localization of TinyMCE WYSIWYG editor which is now outside of BookStack's translation files.

cima avatar Mar 22 '19 23:03 cima

I've just set up BookStack on Crowdin, Just need to do some final setup but seems to be fairly easy to integrate. Loads of nice features and a much friendlier UI for those not used to git.

A couple of potential concerns though:

Attribution

How do we ensure people get proper attribution?

Crowdin Open Source Terms

One of the agreements of using the free open-source tier of crowdin is that you agree for the project translations to be submitted to "Crowdin Global Translation Memory". Those translations are the work of others so I feel a little uncomfortable submitting their translations. Might be good to get some general feedback from existing BookStack translators on this one.

ssddanbrown avatar Oct 18 '19 01:10 ssddanbrown

Those translations are the work of others so I feel a little uncomfortable submitting their translations.

I do not mind. Crowdin is very comfortable platform to translators.

Mant1kor avatar Oct 18 '19 05:10 Mant1kor

Thanks for confirming @Mant1kor.

Question to existing translators

Do you have any objections regarding the translations, that you helped put together, going into the "Crowdin Global Translation Memory". We are looking at using Crowdin to make translating more accessible (Friendly UI where missing translations are highlighted and shown against the base English text). Part of the requirements for us using them for free as an "Open Source Project" is that existing translations will go into their "Global Translation Memory" which essential is their own DB to provide recommendations to their other customers and open source projects. Obviously we will benefit on the inverse of that, where we can get translation suggestions when needed.

If you don't want to provide feedback in the open you should be able to find my email on my GitHub profile.


Pinging existing translators regarding the above: @qligier, @leomartinez, @oykenfurkan, @moucho, @kostefun, @danielroehrig-mm, @miles75, @DeehSlash, @NootoNooto, @Mant1kor, @agvol, @cima, @maantje, @Xiphoseer, @vasiliev123, @ezzra, @qianmengnet, @TheLastOperator, @kejjang, @CliffyPrime, @limkukhyun, @vriic, @mullinsmikey, @houbaron, @kmoj86, @marcusforsberg, @nicobubulle, @alex2702, @msaus, @Alwaysin, @cipi1965, @artur-trzesiok, @lbguilherme, @sanderdw, @timoschwarzer, @Joorem, @JachuPL, @S64, @diegoseso, @arietimmerman, @ReeseSebastian, @NakaharaL, @SergioMendolia, @robertlandes


I have 13 days left on a trial, If I don't hear any major concerns by next weekend I'll request a free open source account.

ssddanbrown avatar Oct 18 '19 13:10 ssddanbrown

It looks good to me!

cipi1965 avatar Oct 18 '19 13:10 cipi1965

@ssddanbrown to update translations can i work on the platform or not for now?

cipi1965 avatar Oct 18 '19 13:10 cipi1965

I think this is a really good move as it will be easier to work on translations and keep all languages synchronized. +1 for me.

qligier avatar Oct 18 '19 13:10 qligier

I think the missing translations are highlighted and shown against the base English text part is a really good thing alongside suggested translations. Looks good to me :+1:

timoschwarzer avatar Oct 18 '19 14:10 timoschwarzer

Sounds great! 😊

marcusforsberg avatar Oct 18 '19 14:10 marcusforsberg

No objections here :+1:

mrkhalidj avatar Oct 18 '19 14:10 mrkhalidj

Looks good!

moucho avatar Oct 18 '19 16:10 moucho

Positive feedback so far!

Thanks @Mant1kor and @cipi1965 for giving it a test drive :smile:

I've done an initial merge of those updates in addition to all the other changes the crowdin integration has done. A bit of change in how the base files are used now:

  • English translations are copied out to other languages (In English) if non-existing.
  • Crowdin will insert translations into languages, even if hidden in the platform (Language list options which are EN only).
  • Crowdin will format and align all translation files with English :muscle:

Unfortunately it does look like everything will be commited by me as the integration user so no attribution via git. I think I'll put together a script to read from the crowdin API to generate an attribution list file of some kind. Could then link that in with GitHub actions so it's generated automatically whenever new translations are provided.


Remaining Actions

  • [x] Request a free "Open Source" crowdin account if no objections by the 27th of October otherwise buy a starter plan subscription.
  • [x] Create script to record proper attribution to translators.
  • [x] Update comments around the en/settings.php language dropdown so it does not mentoin to delete these.
  • [x] Update the translation details/instructions in the readme.
  • [x] Delete the old translation scripts as I think they're now made redundant.

ssddanbrown avatar Oct 18 '19 16:10 ssddanbrown

Looks good

pt., 18 paź 2019, 18:20 użytkownik Dan Brown [email protected] napisał:

Positive feedback so far!

Thanks @Mant1kor https://github.com/Mant1kor and @cipi1965 https://github.com/cipi1965 for giving it a test drive 😄

I've done an initial merge of those updates in addition to all the other changes the crowdin integration has done. A bit of change in how the base files are used now:

  • English translations are copied out to other languages (In English) if non-existing.
  • Crowdin will insert translations into languages, even if hidden in the platform (Language list options which are EN only).
  • Crowdin will format and align all translation files with English 💪

Unfortunately it does look like everything will be commited by me as the integration user so no attribution via git. I think I'll put together a script to read from the crowdin API to generate an attribution list file of some kind. Could then link that in with GitHub actions so it's generated automatically whenever new translations are provided.

Remaining Actions

  • Request a free "Open Source" crowdin account if no objections by the 27th of October otherwise buy a starter plan subscription.
  • Create script to record proper attribution to translators.
  • Update comments around the en/settings.php language dropdown so it does not mentoin to delete these.
  • Update the translation details/instructions in the readme.
  • Delete the old translation scripts as I think they're now made redundant.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BookStackApp/BookStack/issues/1261?email_source=notifications&email_token=ABIDNBLKBZQD6TNB7UIMC4TQPHO5NA5CNFSM4GUQ7C32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBVAGRA#issuecomment-543818564, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIDNBMRBM6RRBM63FJU5OTQPHO5NANCNFSM4GUQ7C3Q .

artur-trzesiok avatar Oct 18 '19 16:10 artur-trzesiok

@ssddanbrown just found this apps https://github.com/marketplace/crowdin

Seamlessly integrates into your development process. Files for localization from the branches you chose are transferred into a branch in your Crowdin project. Ready translations get transferred back as a pull request to your repository automatically.

Seems like it's what you need.

Mant1kor avatar Oct 18 '19 16:10 Mant1kor

Great idea, this would be very helpful

JachuPL avatar Oct 18 '19 16:10 JachuPL

@Mant1kor Yup, I've already set up the integration, just directly via crowdin. Pretty sure that marketplace item just acts as a shortcut to what I've done already, just with less control of the account (I don't want to request an open source account yet or be locked into a business account). The integration is active and a pull request will appear with new translations (If there are any) every-so-often.

ssddanbrown avatar Oct 18 '19 16:10 ssddanbrown

No objections, sounds good.

NootoNooto avatar Oct 18 '19 16:10 NootoNooto