-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate English Backdrop language files regularly #6
Comments
Gábor Hojtsy, http://hojtsy.hu/blog/2010-may-05/using-drupal-collaborative-software-translation-tool:
Is there such an API for Backdrop, or could someone with coding skills look for a way to generate the English |
Just discovered: for Drupal modules and themes, there is the Translation template extractor module which extracts translatable strings via the interface or command line. (It's even part of our Drupal based translation server.) We need something similar which extracts translatable strings from Backdrop core. |
Workaround to generate an English Source file for translations:
NB: I noticed that the number of language strings is quite low on a new site. As if the system needs some usage to build complete information about the language strings. |
We can possibly build the exporting of strings as part of the BackdropCMS.org packager. Right now we have the packager running to update the .info files on every release. We could additionally add a step to automate the string extractor. Though once we have the strings, I'm not sure yet how we would "push" that information to the translation server. Perhaps we could simply publish a feed of some kind on BackdropCMS.org and then have the translation server consume it. |
@quicksketch From the Connectors page of our Drupal translation server:
There are four "Connectors" in a list of which at the moment only the last one is enabled:
Maybe this information helps at some point automating the process of getting the English language files. |
Just wanted to add the last two Backdrop releases to the translation server. To get the English language template (translation source) file of 1.6.3 I tried the workaround mentioned in #6 (comment) on one of my test sites, but the number of language strings is far too low (for the reason see "NB" in the linked comment). It's only 208 KB but should be about 530 KB or more. So, the workaround seems to be not reliable, and we shouldn't use it to build the Backdrop language source files on the translation server, but without the source files we're blocked in building the server. As long-term alternative see quicksketch's comment above. But we need also a short-term solution. @quicksketch or @serundeputy Do you think it's possible to port Translation template extractor to Backdrop? Or to build a similar tool to the "Command line extraction" mentioned on the Translation template extractor project page? |
@olafgrabienski give this a go when you get a chance; backdrop-contrib/potx#1 ;) |
Short report here: backdrop-contrib/potx#1 (comment) Help by @quicksketch needed! |
backdrop-contrib/potx#1 is fixed. potx module is now all set to go. |
I'm reopening this issue and assigning it to @serundeputy. While the potx module is working, it's a short-term solution (which is great) but the original intent of this issue is about the generation of language files "for each Backdrop release on a production translation server" (from the issue description). For a long-term solution approach see @quicksketch's thoughts in #6 (comment). |
From #6 (comment):
At the moment, the localization server is configured to manage translatable strings with Gettext standard input/output, i.e. manually uploading
|
I've added this repo: https://github.com/serundeputy/autogen_translation_releases tl;drA collection of scripts that are intended to run on cron on the localization server. they will
details in the README.md Perhaps we should move the repo to |
Yesterday I suggested in the forum to discuss the topic in the weekly Dev meeting:
Below a link to the video of yesterday's meeting, starting where the topic was discussed. Thanks for the encouraging feedback! |
To set up the translation server for Backdrop language files, we need to upload an English language source file to the server.
While there is probably a workaround for testing purposes, this issue is about the question how to generate such files regularly and reliably for each Backdrop release on a production translation server.
The text was updated successfully, but these errors were encountered: