-
Notifications
You must be signed in to change notification settings - Fork 214
Description
Introduce yourself
Juliet Eldred, Project Manager, Trillium/Optibus
Ask a question
Trillium has been producing translations.txt files for a client's project, and while the translations data did not seem to have any issues being ingested into the Transit App, when my colleague tried to submit the feed with a translations.txt file for Google Transit, it returned a "Value of the language column from the translations.txt file" error in Google's validator (see below)

I took a closer look at the spec, and under the feed_info section (see feed_lang), it says to use ISO 639-2 codes for the language (which are 3-letter codes, eg "spa" for spanish), and this is what I used for all the language codes as I was under the impression that it was the standard to use this for all language codes.

However, upon further investigation, I believe I was wrong, and this is why the feed is returning errors in Google's validator:
- Under the "language" field in translations.txt, the specific standard to use for the language code is not explicitly defined

- But further down on the page, under "field types", it defines "language code" as using an IETF BCP 47 language code, which is only a two-letter code (e.g. "en" for english).

I'm not sure if this was there when I initially created the translations.txt data for this feed in mid-2023 or if I had missed it entirely, but the fact that it's buried at the bottom of the page and not more clearly incorporated into the main body of the spec description makes it easy for errors like this to happen.
In short, I'd like to request a few things:
- Could someone clarify which specific international standard language code to use for each particular field in translations.txt (e.g. ISO 639-2 or IETF BCP 47) so that feeds with translations.txt files can get through the validator?
- Since the documentation of this on GTFS.org is pretty vague, would it be possible to update the documentation to be more explicit about the specific language code standard required?
Please don't hesitate to let me know if you have any questions or clarifications - my email is juliet@trilliumtransit.com