Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2023-04-30 03:07:48

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,327
Website Mastodon

How to add a new string to the Crowdin en-gb source?

I admit I am a bit uneducated about this newfangled method of translating textpacks. We used to have a simple database table back in the RPC days ;)

Nevertheless, I bravely wanted to add a new string introduced by this commit to the language files.

I naively hit the ‘+’ button on the Crowdin page for the en-gb file to add the new string there. Unfortunately, Crowdin told me that adding source strings is not available for this file format.

OTOH, pull requests to the textpacks repo are declined.

How do new strings actually see the light of day?

Offline

#2 2023-04-30 08:32:25

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,299
Website GitHub

Re: How to add a new string to the Crowdin en-gb source?

That’s odd. I thought the method was to log into CrowdIn and add strings that way, then we just periodically initiate an npm script to pull changes into the textpack repo and distribute them to core. I’ll ping Phil and see if anything’s changed.

Sorry for the hassle.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2023-04-30 12:00:06

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,299
Website GitHub

Re: How to add a new string to the Crowdin en-gb source?

Phil’s away for a few days but he’ll be back Tuesday and will be able to get you up and running then if that’s okay.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#4 2023-04-30 12:37:24

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,327
Website Mastodon

Re: How to add a new string to the Crowdin en-gb source?

Great! I’ll patiently wait and happily learn the new way of speaking Txp any time when the chance occurs…

Offline

#5 2023-07-31 11:24:04

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,327
Website Mastodon

Re: How to add a new string to the Crowdin en-gb source?

That escalated not quite quickly. Phew!

Offline

#6 2023-07-31 12:04:32

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,153
GitHub

Re: How to add a new string to the Crowdin en-gb source?

Anecdotally, I understand that the CrowdIn < – > repo dance is a somewhat manual affair, and is dependent on Phil’s copy-‘n-paste fu when resources permit.

It would be sensible to consider documenting the process somewhere and extend the pool of people who can do this, so the bus factor is improved.

Offline

#7 2023-07-31 22:47:42

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,299
Website GitHub

Re: How to add a new string to the Crowdin en-gb source?

Forgot to circle back on this, sorry.

So the process is indeed a bit manual. Syncing from Crowdin required some API shenanigans so we instead do it like this:

  1. Add strings to the textpack or pophelp repos in the en-* language(s).
  2. Phil (or someone) then uploads them to CrowdIn so other translators can play.
  3. Once translated, those strings somehow get pulled back down into the textpack/pophelp repos. Not sure how.
  4. We periodically run an npm script to pull the contents from there into the main core repo.

So the sticking point here seems to be that the repos don’t accept PRs or you don’t have commit access to them. One of us should be able to fix that by poking around in the myriad settings.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#8 2023-08-01 07:05:53

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,153
GitHub

Re: How to add a new string to the Crowdin en-gb source?

Bloke wrote #335616:

One of us should be able to fix that by poking around in the myriad settings.

Done!

Offline

#9 2023-08-01 14:15:08

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,327
Website Mastodon

Re: How to add a new string to the Crowdin en-gb source?

Thanks. That went well!

Offline

#10 2023-08-14 11:00:36

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: How to add a new string to the Crowdin en-gb source?

Hi Robert. I uploaded the latest en.ini file to Crowdin and that will bring in translations of the extra strings.

In future (applies to all the devs) please add any additional strings in the en.ini files in the dedicated Textpack GitHub Repo and I will monitor and sync to Crowdin. Sorry for the slow response this time.

Thanks!

Offline

#11 2023-12-15 05:10:11

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,327
Website Mastodon

Re: How to add a new string to the Crowdin en-gb source?

wet wrote #335380:

Nevertheless, I bravely wanted to add a new string….

I am caught in an ♾️loop, this time triggered by my intention to add the strings introduced by commit 867b977. Crowdin still won’t let me, because those strings don’t meet their file format requirements.

I won’t give in. Promised.

Offline

Board footer

Powered by FluxBB