Batch update a translation?

The current Simplified Chinese translation is poor and I’ve updated a lot of strings in the admin interface. I want to contribute these translations back to Discourse but I’m stuck.

I can export those strings from the database and put them back into the {client,server}.zh_CN.yml files, but how can I push these changes into the Crowdin platform?

IIRC you need to do the updating on Crowdin not the yml file:

But I don’t want to copy-and-paste 142 times like a machine.

Unfortunately, even copy and pasting alone likely won’t get you anywhere. Once the proofreader has approved a translation, new suggestions from the community will not change the existing translation. The proofreader must first confirm the new translation. In order for them to review the translation again, a new suggestion is usually not enough; a comment explaining why the change should be made is also required.

Are there certain phrases that are repeatedly incorrect? Then it might be easier to discuss this using one example and then replace the term everywhere. This is definitely possible in Crowdin.

This would be much more relaxing and less error-prone than the copy-and-paste part.

A lot of spaces are repeatedly incorrect and some of them even cause rendering issues.

Also some words are just wrong in some cases but not all (e.g. an HTTP header can be called “标头” but a page header should be called “页眉”).

Others are more case-by-case.

I’ve updated the translations in the admin interface when I noticed a strange translation and over the past two months a lot of them have been fixed and no new ones pop up for a while now.

I just gave the web interface a try, and find it’s harder than what I expected: the strings are spread in several files and unlike local files, I can’t just search for the target string. I have to guess which file the string is in first…

Maybe I could finish manually committing all my changes in one year or two :melting_face:. (Or I give up, keep our forum good and try to send my translations to the forums I care.)

I don’t know how you navigated on Crowdin, but you can search through all files in one workspace at once. So, as long as you don’t use any special plugins, you should be able to find most texts at the same time as long as “all strings” is selected. This link should take you there: Crowdin

I don’t see “all strings” and your link takes me to an error page:

Sorry, can you try to select crowdsourcing or try Crowdin?

Thanks, your link worked!

לייק 1

I don’t like the interface of Crowdin, either. Even after translating for more than a year, I still find features I didn’t notice before, and, as I just proved, I am still not able to share a link to a specific view because I forgot to preselect a parameter.

I think I made a mistake: I save my translation, and add a comment about why the change is needed. But it seems that after saving a translation, the interface sometimes moves to another, so my comments may have been added to the wrong entries…

לייק 1

I recently learned you can disable that.

There is a gear on the top right, next to your avatar, and in that menu, you can disable it.


Do you need help finding the texts you added the comments to? My preferred way to find comments is the activity overview.

לייק 1

Thanks! You are very helpful!

It seems that I didn’t make a lot of mistakes: it seems to only move to the next one in the search result, and my result usually has one unique result.

לייק 1