Translations and virtual touch keyboards - tracking localization

Yes, portrait layouts were added later and only some languages have that.

To add a portrait layout, you need to take a look at the tutorial https://developer.puri.sm/projects/squeekboard/tutorial.html

The landscape layout would be called gr_wide.yaml, not mentioned in the tutorial yet (updates to the tutorial welcome, it’s in the docs directory).

New delayed 1.9.0 release of Squeekboard arrives in a few days.

The release is based on a big new feature: when the application supports it (GTK), then text is sent as text instead of key presses. The change would have gone live earlier, but it turned out deleting text not as key presses ended up fundamentally broken and needs to get redesigned.

Other features:

  • Fixed glib critical when switching layouts
  • Fixed minor memory leaks when switching layouts
  • New Polish language layout
  • Fixed greek layout
  • Better key locking
  • Less leaks
  • Tweaks in terminal layout
  • Better emoji layout

Thank you to all contributors and reporters!

2 Likes

All languages dropped :part_alternation_mark: to low percentages in translations as phosh translationfiles in Zanata just updated :astonished: with several entries - it might take you all of 20 minutes to do them all :sweat_smile:. It should be suggested that updates should be done soon / this week :spiral_calendar:, as the server and service is due to change :electric_plug::computer: and no one want’s to have last minute translations go missing due to the move :truck: :articulated_lorry: :truck:.

I’d hope and expect that someone will a post about when to stop using Zanata, when to move to new system, where to find manuals, how to ask for context on strings, how to decide on accepted translation, if there are any timetables/cycles for updates, how to get additional languages added, how to handle group effort and quality control, automatic/machine translations, anonymity settings, policy on using shaping and labels, rate limits, commenting or changing source, will there be pro checkups, how to get community apps to the same service etc. etc. etc.

And after the move, it would be nice to have more than two apps to translate - like, community apps too

1 Like

Tracking update:

  • terminal keyboard is coming along nicely
  • keyboard layouts still need people from almost all languages to define what are their preferred character layouts (vertical and wide layouts - maybe terminal too?)
  • translation server change is still in the works, it seems [edit to add: Zanata is down]
  • translations updated and all languages need to update, but depending on the server change, volunteers should make sure that the change is not happening while they work or risk losing latest updates
  • I’ll update the table once the server change is done
2 Likes

I’m working in the Spanish wide layout, it’s a bit tricky because when I switch to landscape the system is unusable, once is ready I’ll upload it to the git repository.

@dcz It’s possible to use the Del key? I’m thinking that it would be be useful to have it when you press shift and then backspace to remove the next character, because sometimes when you want to remove a typo in a touch screen you press in the wrong place and it’s a bit difficult to move the cursor where you need it.

Sooo… I started to write this several times over past some weeks but stuff happened and now it’s end of July. When the change happened, I didn’t have time to jump right in and now I’m playing catch up. My initial text went a bit long, so here is the portion similar to that what I’ve tried to do previously – to track what’s going on with the translations.

Current situation: stats and overview

So, the translations have mostly ground to a halt, it seems. When Zanata service became unreliable and the whole management of those language files was moved to Damned Lies (DL, https://l10n.gnome.org). Ironically, yesterday when I was preparing this, I noticed that it was having bad times, but that was resolved in a couple of hours.

Now, I’d like to point out that the move effectively gave a new home to managing the translation files but at the same time it took away the tools to translate – a necessary move if you’re looking at this from coder’s perspective but a big step backwards if you are only doing translations. From what I’ve been able to find out in my limited searches (https://source.puri.sm/Librem5/phosh/-/merge_requests?scope=all&utf8=✓&state=merged&search=translation), only few active people have known a way to push their translation updates onward in the process. This was probably because they’re familiar with how development and git work. For the rest of us, there are plenty of guides and help at DL for the general stuff and from Gnome dev perspective. But they do not cover everything and the breadcrumbs/explanation/path from L5 forums to to translations to merge (the final step to actually include the translation into the app) is missing. With some of that I’ll try to help out in a separate posting in a day or two. There’s a lot more to say there and I want to keep that separate from this stats and situation overview.

Returning to the point, the change happened and I’d have to say some follow-through is still waited on. Many languages are where they were left at Zanata, several months ago. But it’s not all bad. There has been work done by active individuals: Romanian, Ukrainian, Catalan and Danish have to be mentioned – keep up the good work. A couple of others have tried to be activate too, but have not been directed towards being considered to be merged yet, it seems.

As a new thing to most, please notice a new app to translate. In addition to phosh and chatty/chatts , we now have calls in DL. At some point, if memory serves, at least keyboard and documentation should also be expected to appear for translation, and likely some other apps too.

The excellent thing about DL is, that it has good public statistics on how much translation has been done – both relative percentages and absolute numbers of strings. So, no more manually collected tables here. I did gather a bit of an overview of them, though, as well as Pure Maps (which is on Transifex.com and not DL).

chatty/chatts: https://l10n.gnome.org/module/chatty/

  • strings: 180 (538 words)
  • languages started: 21 languages/locales, of them 6 are active and fully (over 95%) translated
  • notes: more languages should start this but translation levels are pretty good
  • last update: couldn’t tell you at the moment, as they’ve not been announced (maybe a few months back?)

phosh: https://l10n.gnome.org/module/phosh/

  • strings: 44 (100 words)
  • languages started: 36 languages/locales, of them 7 are active and fully (over 95%) translated
  • notes: mpst languages are unchanged and getting worse, as more strings have been added/updated
  • last update: couldn’t tell you at the moment, as they’ve not been announced (maybe a few months back?)

calls: https://l10n.gnome.org/module/calls/

  • strings: 40 (104 words)
  • languages started: 13 languages/locales, of them 6 are active and fully (over 95%) translated
  • notes: more languages should start this but translation levels are pretty good of those that have started
  • last update: couldn’t tell you at the moment, as they’ve not been announced (maybe a few months back?)
  • [edit to add] for reference, it takes about 45 minutes to do the translation file (slow-ish pace)

pure maps: https://www.transifex.com/rinigus/

  • strings: 469 (1921 words)
  • languages: 23 languages/locales started, of them 10 are active and fully (over 95%) translated
  • notes: for more, there is also the related OSM Scout server that can be used to have your own map services (483 strings, 3976 words, 11 of 13 languages seem active and more would be welcome)
  • last update: a couple of months ago (server seems steady, rarely updates)
  • [edit: adding @rinigus here - maybe could get some comment from app developers perspective on translations and translating etc.]

Should there be some other app somewhere that should be kept on eye on (we’ll see how much effort tracking those needs)? Preferably something that’s going to be central to L5 experience. The ones that I previously had listed:

Librem 5 related translations combined tracking (all Purism L5 apps, now called “release set”) can be seen in https://l10n.gnome.org/releases/librem5/ It seems a bit “harsh” as a meter, as it calculates all apps and percentages equally – good activity in some doesn’t mean much if another app is neglected. All in all, there are 37 different locales (counting all languages and their separate regional codes) that have started work on one L5 app or another.

I won’t include the virtual keyboard layout situation here (maybe @dcz could comment on that), but just as a reminder, localization of keyboard layouts needs native users to define what is their preferred layout (see: https://developer.puri.sm/projects/squeekboard/tutorial.html).

At the forum (Where is the most interest in Linux phones?), @amosbatto did (again) a longer forum article on where the L5 had been searched and in which countries there was indication of interest towards it. This is valuable for internationalization efforts, as it tells (a) which languages are the ones that should be translated, and (b) which language areas need more hype and translations for them to get interested – it works both ways.

And if you are interested in the shortcomings of, and fixes to, Damned Lies, just this coming Monday evening (27.7.) there is an online seminar (https://events.gnome.org/event/19/) at GUADEC 2020 (Gnome’s biggest yearly conference). I’m not sure if I can make it, so if someone here does, it would be nice to see a couple of notes.

I’ll try see if I can edit a readable text about how to do L5 work with DL, and the differences to previous, to help anyone interested to continue the work.

1 Like

I can’t figure out how to submit the PO translations files for Spanish. I tried submitting the files as attachments at https://l10n.gnome.org/vertimus/phosh/master/po/es/, https://l10n.gnome.org/vertimus/calls/master/po/es/ and https://l10n.gnome.org/vertimus/chatty/master/po/es/, but it doesn’t seem to work.

Any ideas?

Absolutely. The process is broken, the chain is cut, so to speak. The DL system is made for Gnome and Gnome app development, where (as far as I understand what’s happening under the hood) the uploaded .po is automatically committed and forwarded for merge. That is what you are trying to do and it’s correct. But L5 app development apparently isn’t using the same process because Purism naturally has it’s own independent system. At the moment, the few translation updates I’ve seen merged, where when an individual has been involved with L5 git and offered the .po there for merge. That manual way is not very practical (but it may also be the only way as I’m not familiar how much the process can be automated - this is not one sided as the DL system is also a bit… in need of development) and having individuals ferry the files kinda defeats the purpose of translation file management. [edit to add: in my language, the phosh file has been locked waiting to be merged (or something) since spring and there is no functionality to do anything to it, even by translation group seniors]

When the change happened, there was probably so much going on that the finer points (or the translator perspective) weren’t tested and documentation is lacking. I’ve asked clarification to do these final steps correctly and efficiently as I have no idea how they should work (only what I can see from the outside - and adding to this: maybe the DL to L5 apps process works but it’s just not showing). This was also what I was hinting at with the additional text coming soonish, as I don’t want to rush with any advice that may change. And since it’s weekend, I guess we’ll have to give it few days.

Chipping in as a developer. On Sailfish, the OS where Pure Maps and OSM Scout Server started, many of us use Transifex. Warning, it is free as a beer, their infrastructure codes are not open source. Service is free for open source projects. For closed source codes, you have to pay. With this warning given, let me describe the usage.

Pure Maps and OSM Scout Server use different translation approaches. While Pure Maps is using POs, the server is using Qt-based translations. As far as I know, Transifex supports other approaches as well .

In general, use of this service is easy. This is both for the developers and translators. Such ease of use is the main attraction and allows us to work efficiently.

On developer side, you register yourself and then your projects. As I do it rarely, I don’t remember the details. But they have nice docs describing what to do. As far as I can see, Pure Maps config is in https://github.com/rinigus/pure-maps/blob/master/.tx/config . My translation related work is the first half of https://github.com/rinigus/pure-maps/blob/master/RELEASING.md . As you could see, all simple and I don’t do much more in addition. Once in a while, I get an email to approve the new language request for the project. As soon as I approve, translators are automatically accepted into the project and can work on them without me. All I have to do it to pull their work.

On translator side, it should be easy. However, I don’t have first hand experience with it. As far as I can see, translators are given strings via online form and they just fill it. It is possible to also approve translations.

I would say that I am happy with this service and would use it for other projects as well. As I can pull all the translations into Github repo, I don’t personally care whether they have been in the “locked” database behind closed-source components in between. As simplicity and efficiency is there, I consider the time used by developers and translators as a major asset that needs to be used as well as possible.

2 Likes

I’m interested in how much and in what way you have had to help translators with contextual information and additional information. I remember when doing the PM translations that the strings were pretty simple and there didn’t seem to be that many terms with multiple meanings but was this always the case? I mean, PM has been in the works for some time already then and there was already half translated (inactive) language there, so were any changes needed? Were there ever problems with translations or feedback related to it that needed a bit of problem solving? Have you ever done any quality control or tried machine translations (google or others)? What’s you take on the few languages that have started but never gotten very far - have you tried getting people to participate?

Let me try to reply to all these questions:

My general attitude applied to Pure Maps and OSM Scout Server translations has always been that it is a part of the project where developer does not have to intervene much. It is something that users are doing for users. All what I have to do is to provide means and answer or correct in the code when needed.

I remember when doing the PM translations that the strings were pretty simple and there didn’t seem to be that many terms with multiple meanings but was this always the case?

There could have been strings that needed some change, either in PM or the server. In these cases, you get the feedback via github, forums, or Transifex. Make the change in the code and upload new strings. All as expected, I think

I mean, PM has been in the works for some time already then and there was already half translated (inactive) language there, so were any changes needed?

I take half-translated languages easy. If they are not ready then they don’t get pulled into the source. It shows that there is insufficient demand in that language and it is mainly kept for new translators.

Were there ever problems with translations or feedback related to it that needed a bit of problem solving?

As mentioned, maybe few strings had errors in English or were not clear. Then those got fixed.

Have you ever done any quality control or tried machine translations (google or others)?

No, never done that. The control is via users as far as I understand. Some discussion was prompted by Spanish translation of one of the projects. But this discussion was between users and it was not something I could contribute to anyway. In the end, one of the users prevailed and that was that.

What’s you take on the few languages that have started but never gotten very far - have you tried getting people to participate?

No. If language is dropped, I consider that it is either not needed or it does not have someone among the users who takes the initiative to finish it. As these projects are large and I have also few other things I am doing, there is no time nor desire to start hunting for translators. Again, it is something that users are doing for users and it is what you could do without programming knowledge.

2 Likes

Totally possible.

@dcz, @dos,
Purism needs to have clear instructions on how to do translations.

I followed the instructions for developers that say that translations are handled via the GNOME translation Project using GNOME infrastructure, but that currently doesn’t work.

When I submitted Spanish translations at https://l10n.gnome.org/module/phosh/, https://l10n.gnome.org/module/calls/ and https://l10n.gnome.org/module/chats on July 25, my translations were not included. Instead I received the message:

This module is not part of the GNOME Git repository. Please check the module’s web page to see where to send translations.

Then, Daniel Mustieles, the coordinator of the GNOME Spanish translation team, submitted his own translations about 2 months later to phosh, calls and chatty, which were accepted. (He is probably a better translator than me, so I don’t mind.)

The developer documentation needs to explain what is the right way to submit translations, because using GNOME infrastructure isn’t working.

3 Likes

Yes, this. I was already thinking of giving up.

Since we aren’t getting clear instructions, I have written what I think is the right way to do translations on the Librem 5 Community FAQ:
How can I translate the software on the Librem 5?

Creating new issues and attaching the .po file to the issue report seems like an easier route for translators than getting approval to add code directly to each project and then learning to use git to add the .po file, but maybe that is the route that Purism wants to take. Let’s see what the Purism devs say.

1 Like

Here’s what I was working on… It was waiting for more answers (that never came) and it wasn’t polished yet, so it was left to gather dust. It’s actually two texts - first one to guide, second about need/fixes. A tad long. If there is anything usable, it can be copied to wiki [I don’t want to do it as it’s nice and concise atm].


What changed in translations and how to do them now?

Without going too deep on the history (see: “Zanata is down” Zanata translation server is down and links in there), the system and work for localizing Librem 5 has changed. The old translation tool, Zanata, has been replaced with Damned Lies (DL), what’s used for various Gnome apps translation. With this text I’m trying to ease both the transition to the new system from the volunteer translator perspective, as well as for those who haven’t yet started but are looking for a way to help out (not just Librem 5 but other open source projects too) - or just looking for something useful to do. One translator has the potential to help millions.

For clarification, translation is big part of localization (“l10n” for short – first and last letter with number of characters in-between). Sometimes they are used as synonyms (with internationalization, “i18n”), but since the work often includes more than just direct translation of words (as in, meanings and ideas) the more general term for the work can be used to express this. In some cases, a described method or information may be different due to varying local reasons (different commercial systems or regulatory requirements for example). Also, sometimes for technical reasons translations do not fit well (for example too long) and a similar-enough replacement may have to be created. More on this: https://en.wikipedia.org/wiki/Internationalization_and_localization

The ”new” system for managing files and statistics is called “Damned lies”, abbreviated DL (there is wikipedia page for that name, if you are interested). For clarity: DL is translation support system but I may also refer to “the Gnome system” and Gnome translation project (GTP) as those encompass a bit more, like how things, data and people are organized - a way of thinking and doing things.

And to emphasize, DL works fine for Gnome related projects, but they are also more directly connected to the DL system and get the translations automatically, if I’ve understood that right – unlike L5/Purism. It does not seem impossible to use DL, it just doesn’t seem to have been made to be used quite like this. And I guess in a hurry, the process wasn’t tested, evaluated and documented beforehand thoroughly. Thus, some hints and advice are needed (probably even after this novella).

Getting started

I hadn’t tried the DL site or workflow previously, so I’ve tried to describe here what it’s like to get set up for newbies, and how it differs from previous, for the benefit of those who already tried Zanata or similar website based service/tool. The only caveat that I can think of is, that some larger language groups may have more deliberate process to guide translations and translators, as well as that some minor languages or localities (remembering that same language may have differences between areas) may not have representation or it’s dependent on one other persons activity. This is due to there already being a lot of organized (and less organized) translators. In general, they are a helpful bunch and eagerly accept your help – even if it’s limited just to L5. Here is the process description for Gnome translations (https://l10n.gnome.org/help/vertimus_workflow/), where you’ll notice challenges in having separate people for each step and how teh disconnect of L5 in the commit/merge stage needs attention.

My suggestion is that you go through first DL’s wiki pages on translation, which are pretty concise (but do seem to have old advice too, here and there, as well as not relevant info for basic translations).

Suggested for starters:

  1. Joining: https://wiki.gnome.org/TranslationProject/JoiningTranslation
  2. General info: https://wiki.gnome.org/TranslationProject/ContributeTranslations
  3. Workflow visual: https://l10n.gnome.org/help/vertimus_workflow/
  4. What are po-files (see middle of the page, ignore top and bottom): https://wiki.gnome.org/TranslationProject/DevGuidelines/Localize%20using%20gettext%20and%20intltool
  5. More extensive: https://wiki.gnome.org/TranslationProject/LocalisationGuide

More indepth and additional info for later, links:

  1. https://en.wikipedia.org/wiki/Internationalization_and_localization#Standard_locale_data
  2. https://wiki.gnome.org/TranslationProject
  3. https://wiki.gnome.org/TranslationProject/Scripts
  4. https://wiki.gnome.org/TranslationProject/LanguageCompletionStatus
  5. https://wiki.gnome.org/TranslationProject/DevGuidelines
  6. https://wiki.gnome.org/Home
  7. https://en.wikipedia.org/wiki/Gettext

All the languages and their codes:

All the language teams (191 at the moment, see “survey” link for an overview):
https://l10n.gnome.org/languages/
https://wiki.gnome.org/TranslationProject/Survey (circa 2011)

… and ask questions at their channels about general stuff (app related to app specific addresses).

After reading a bit, sign up for an account, join your language team and wait for acceptance notification from team coordinator.

My experience was good, even though DL and the Gnome system seems a bit of a step back when comparing to web GUI translation sites. But, even though this changes a bit things for the translator, it helps the developers a lot, if I understand correctly: lots of volunteers to translate (although no guarantee that they translate L5 related modules), stable system (with a lot more languages and locales supported than previously) and better management of translation files for a project this complex (good for upstream, sharing, etc.).

Translation workflow and the process

The main difference in the work is that, where Zanata had the strings/messages (both terms are used in general, meaning phrases that consist of words or other symbols) that needed translating presented separately in a graphical web interface with the tools, DL gives you a .po textfile (portable object, a way to separate program and content strings/messages - https://en.wikipedia.org/wiki/Gettext) that you open in an editor. Zanata did have .po-files available too, but it is assumed most did not use them. A .po translation is based on a .pot-file which is the original/template source but ordinary translators should not need to work with them.

The workflow process for translation is approxiamtely

  1. login to DL
  2. you go to module (app) website and to your language (if it does not exist, request it)
  3. reserve the module in your language page
  4. download the .po
  5. use your editor to translate the file
  6. upload the .po
  7. make sure the file is not reserved anymore

To get the po-file that you want to work on (in this case on of the Librem 5 apps): go to your language team’s page --> see the listing of different releases (don’t get confused by that term) --> see “Librem 5 - Purism” --> click the numbers (links) next to it to open list of modules (the term means an apps/software) --> go to the app.

Alternatively you can open a list of all the possible modules in DL from the last line of the different releases but be careful to go to the current master version. From the selected module page you reserve the translation task and download the po (see wiki for details and/or ask team coordinator and/or channels). You can also download a .po just to look at it or for practice - there is no harm in that. As long as you don’t reserve it (which may prevent others form working on it).

Translation, editing tools

A file named ”<nameofapp.version.languagelocalecode>.po” of a module can be edited in a text editor but it is better to use a translation application like Poedit, Lokalize or Gtranslator (Gnome Translation Editor - nothing to do with that search engine company or their translation site). Some of them have extra features to help with the work. I’m going to comment shortly on first impressions using Gtranslator and Poedit here as they were easily available for me. Web based tools (hidden .po-files) have been tried and it is possible some languages use these in some translations.

Gtranslator is very simple editor for linux. It shows everything in neat boxes and marks missing and fuzzy translations. After you’ve done your sign-up to DL and install, open a po-file. First it helps you to create a profile with all the relevant info (note: you can get the “nplurals…” value from your team page). Poedit is available for most platforms. There are only small differences in usability after the newest version of Gtranslator also got the personal translation memory feature that can be used to translate recurring strings easily, which may be handy over time.

When editing textfile .po (without editor), you add your language after the msgstr (“message string”). Don’t touch the msgid lines of the original source (English) strings in the file, or the translation file will be corrupt. Notice also that there may be extra spaces here and there at the ends of words/stings. At least Poedit’s “validate” shows if there are unexpected technical differences that you need to check out before saving and uploading.

While you translate, if you see peculiar (“C-format”) strings, like %d, %H:%M, \n,\t, “something” etc., they are placeholders for things the program will fill etc. These are similar to what you may have seen in Zanata as well. Just copy and translate around them, but in general do not change them. At some point you may understand what they do and can adjust the translation accordingly.

Some time format related can be found from https://developer.gnome.org/glib/stable/glib-GDateTime.html (under “g_date_time_format”). An example of a translation that may need localization is “%Y-%m-%d”, which shows time in the format of “year-month-day” like 2020-07-25 (one standard format). But if it’s a format that your region does not use (mostly in mine everything is in day.month.year as in 27.07.2020), you could (if you are absolutely sure) change the order and separating characters (because it would be better readable to your region), provided that it’s not something that the app is expecting to be in that specific order (in which case do not change it – just copy it as is). A similar one – but which you need to be careful with – is changing the format of representing time in 12h (AM/PM) or 24h formats. If you do not know what it does, do not change it (just mark if “fuzzy”/”needs work”). You can ask about it afterwards and update the translation when you understand it.

Quality and support

After uploading the .po back, the translation is (hopefully) checked/proofread by a reviewer from your language team. There may be corrections and the .po may even need additional translation (if all was not translated). After this, it is submitted to be committed, as the new version of your language. The Gnome/DL system is hierarchical and tries to prevent that one person does not do all these steps for quality and security purposes. Of course, this requires enough active volunteers.

As always, it may be difficult to identify the context or meaning of a string (especially if it’s one word) in the .po. It would be good if the translator had the latest version available for reference (for instance running an image on a virtual machine). The developers should use as much as possible comments and context information (see Gnome dev documentation). If understanding a meaning or identifying function is difficult, the owners of the modules have left their emails on the module page but it’s better to file a bug report. Team coordinators are helpful too.

Other option (besides not translating it) is “fuzzy” (or ”needs work” as it’s named in Poedit), which means it is known it is not entirely correct and needs to be looked at. Translation may become “fuzzy” also when the original string or its function changes. In addition to marking something as “fuzzy”, in the editors there is the option of adding notes. These can be very helpful when several people – sometimes after years and long after the previous person – translate the same file. Short description of possible variations that could be used or the unclear context or other problem can be added here. But ask about the problematic string somewhere to solve it because no-one may find the note if they are not looking for it.

Once the new .po is uploaded back, the DL will display the new file and also provide a comparison page that show differences between old and new, if that interest you.

There seem to be ways to use translation dictionaries and machine translations to help, but it is the job of the translator to make sure the meaning is conveyed - not just the literal translation. For qood consistent quality and similarity, translator should use the same translations that have been used in other programs (“stock”) - so check examples from them too. Using identical translations helps users, as it gives familiarity with the app. Checking the result - testing - is encouraged (you may also find bugs to report to programmers).

Since there isn’t a built-in possibility for language specific discussions, new channels for that are needed. Some language teams have set up their own chats, forums and siten with localization info beyond Gnome projects. Use them as much as possible. For questions regarding DL, workflow and tools check the wiki, contact your language group or one of the Gnome community channels. If there is a dispute or a non-responsive coordinator, there is a process for that too in GTP. The https://forums.puri.sm/t/translations-and-virtual-touch-keyboards-tracking-localization will continue as the place for more general and L5 specific translation and localization related things.

In time, there will be new iterations of translations: fixing spelling errors, inventing better phrases for previously translated or translating new strings/messages. Changes may be reported via different channels: gitlab issue tracker system, developer email or they may appear in the .po via other means. Therefore it is important to keep an eye out for these messages and changes regularly. As the app updates, often the translations need to update too. If the apps do not update, it is good to see which one of the other Gnome modules might need work.

And read the wiki articles listed in the beginning.




Problems, challenges, todo-items – wish list to make it better

There are several interconnected and separate things that I’m picking (and nitpicking) here. Things that should be commented in some official way by Purism – some sooner, some later. To some of these there may not be an answer and some may be buried under something called ”Dogwood” that’s apparently (hopefully) taking all the resources. Also, as I said, I’m looking at this from the outside and have no idea if there are reasons based on other processes that direct translation aspects. I’m only learning DA and I’m not sure Purism is quite up to speed on how to use it effectively either. Or, these thoughts have been shared somewhere else and I’ve missed them. I also want to set limits to my level of involvement, effort and time I’m willing to donate (and hope for a painless as possible process to help), which I think is reasonable for others too, and why I’ve only gone ”this deep” into some of this.

Translations page (https://developer.puri.sm/Librem5/Contact/Contributing/Translations.html) is a bit… too concise. Surely we can have better than pointing to DL, which can’t help with a lot of things.

The FAQ, Get Involved (main Puri.sm pages) and Contribute sections are missing translations/internationalization info and links. And there isn’t a link to the developer wiki, so it’s difficult to find this mode of participation. Also, the “Get involved” page is not in drop down menus (or under contacts, which could also be logical for it - as is with community forum info), but only in the footer, which to me just seems weird.

L5 docs (as well as Purism About page and other product pages) could do with a description of internationalization efforts / policy / strategy. Some questions to answer could be: how long is there support for a language, how is it supported, what can Purism guarantee, what is the connection of understanding and connecting people to safety and security, which apps are part of Purism responsibility and which are someone else’s (and what for instance does Gnome do), how to check which languages are supported (translations, localization, input methods) and to what extent, how does Purism try to support quality, what are the overall processes, can some languages be supported more and how, what to expect / vision in the future (if a path exists), etc. It’s not wrong to also describe the limitations and challenges.

The translation effort would benefit greatly from announcement page (maybe a separate thread, possibly updated by staff only). I’d prefer a public page instead of an email list but I suppose that could work too. For instance, it was a surprice to find calls available to translate. But what’s more, it will be important for active participants to know when files have been updated and when there are deadlines (like when a new version is pushed out). Or when other events ad changes occur.

The DL module pages have personal contact emails for questions, which may be normal, but I’d like suggest some generic “translations@puri.sm” mail for more concerted effort and support (especially if there are going to be more apps to translate). As there may be things that would be good to tackle as one and work identically on all – no need to invent the word for wheel several times. And should a person lose email or stop work on an app, there would still be a working contact.

A guide for getting a community app translated is needed, as otherwise it’s likely that a lot of those L5 specific apps make the whole localization haphazard (image of L5 quality and all that), even with a large number of well translated Gnome apps. The dev examples has a page about translation files (https://developer.puri.sm/Librem5/Apps/Examples/General/Treasure/Overview/Translation_Files.html#examples-treasure-po-dir) but it could be expanded more about how to get translations and how to take translating/internationalization into account (for example: keep contexts simple and logical, keep texts concise, keep strings short but descriptive, expect translations to need more space, offer additional context for translators who may not know anything about the app, offer a contact where to ask about translations etc.). See also: the guidelines for developers regarding translations (which should be promoted) https://wiki.gnome.org/TranslationProject/DevGuidelines as well as process of adding translation support to an existing application https://people.gnome.org/~malcolm/i18n/

The Damned Lies translation site, with regards to L5 translations (which are of course not part of Gnome system/apps development), helps to manage translated files, but helps less the translation work. It was not built for that and it’s recognized by the current users too as a shortcoming. In this case the abnormal file management process (because this is not part of normal Gnome processes) may lead to a dead-end. Translators upload normally their translations to the l10n-server and may leave it there to be picked up (merged) or don’t bother at all, if they notice that the files should be sent/uploaded/committed elsewhere. It’s a show stopper. Guides and hints are missing from there and Purism pages on what to do. And if someone’s old translation is ready to be committed, others can not work on the newer versions (I’m unsure if and how this can be resolved).

It seems there a few developers that have been making translation commits to L5 because they use both systems, are more familiar with the systems and have access but several languages are in a limbo now. The move from Zanata may have worked for those, who were involved in DL and L5 development already but current situation is a disservice to those many that are less coding-inclined but would like to participate. This most likely will not be the end of this, as the process and information can be improved in many ways, as I’ve tried to hint here and there. Those few knowledgeables who have managed to merge translations, and know what to do, could write something and talk what the situation is with their languages.

Unlike in Zanata, there is no translation memory that is built over time, and the Gnome/DL system relies on proofreaders (https://l10n.gnome.org/help/vertimus_workflow/), which they already have organized. (A side note: they do not fully replace one another and Zanata could also use proofreaders, but they solve the same challenge). This may affect quality in positive (checks, usually by safe seasoned translators) in languages where there are proofreaders but also in the negative (no knowledge of L5, harder to keep translations in line/similar). For quality control and easy/quick fixes, contact (email/emails) needs to be available and preferably shown in the OS as well visibly. [edit: POedit does create a local translation memory that can be shared and exported]

In addition to above, Purism should pay professional translators to do (sometimes random) checks every now and then. A yearly translation audit would be a nice addition to any inclusiveness / corporate responsibility reporting. A professional service could take a look at the coordination, analyze quality, give recommendations on how to improve. And maybe have a couple of less active (or not started but interesting) languages professionally ”jump started”. This is not just for L5 but all of Purism products.

For those among us, who wish to participate. To be effective and to bring most benefit to users, translators can prioritize all the short one or two word strings which people mostly use. This should also enhance your languages statistics. But do not leave the longer strings for too long as it’s usually the more difficult aspects of an app where good translations are really needed. These are also often the ones with security implications as a user might not clearly understand what effect their selection might have (or they may avoid certain functions because they are unsure). There is no absolute number when an app is ”translated enough” to be usable – even though some 80/20 rule may apply. But, again, it may be inverse, as most users may know a little of a languages basic words and the need may be in the less used more complex strings. Mixed / partial translations may also add to confusion and lessen the feeling of control (and thus security) of the device as the user may not fully understand what a dialog or a setting is affecting / connected to.

2 Likes

@JR-Fi, Thanks for all the great info for translators.

I added a link to your comment in the FAQ for people who want more info on translating.

Thanks for writing up a comprehensive guide and critique of the translation process as it stands right now.

I think the shared responsibilities model where we push projects upstream doesn’t help us to be responsive when translators create or update translations. Also, the reliance on separate tools is also less than ideal. Some of these things could be mitigated if there were more people working for Purism on general quality issues, or there was a bigger push towards supporting mobile upstream.

There needs to be more information about how to handle translations in general, and there is an open issue about this, though you can see by how old it is that it was overtaken by other concerns. To try and cover the subject on some level while also addressing other requirements, I included a brief section about translation in the Simple Weather example application. I was hoping that I could rely on existing documentation but it seems that we still need tailor-made documentation for phone application developers.

As it stands, I can only try to make others aware of your comments and see what they can suggest we do about it. :slightly_frowning_face:

1 Like

It would be good if translations and the process (from app to po to comments/context to translator to translating to uploading to merging to user to feedback to revisions) could be thought of as a whole. It may need you to call a time out for translations in general to reset it as - like you mentioned, time and resources are needed to get it going. My suggestion is that, at this point, as getting L5 out is nearing and there may be other thing to do as well, a decision could be made (in stead of just letting it be in a limbo) to announce that this issue is postponed until January XXth or something, when it will be a priority until (mostly) fixed. Take time to plan and prioritize. All interested parties could plan accordingly for a push & changes as well and know that Purism still plans to support internationalization activities and overseas customers.

As a reminder, even though the work process is less than ideal, translation can be done (even if they may not be committed via the DL-system - maybe later). Currently, only Ukranian has full 100% translation on the L5 three (chatty, phosh, calls) and Haitian Creole (!) is close second - no translations of other GNOME apps, though. Only 9 languages (including Brit English) are above 75% mark and only 21 are above 50% translated (percentages indicate some minimums for usability in a language, which is hard to quatify). See: https://l10n.gnome.org/releases/librem5/ Also, don’t forget other apps (libhandy, gnome-contacts etc.) that are pretty central too with L5.