Make sure languages "with two parts" are handled correctly #17

Open
opened 2019-05-12 19:19:22 +00:00 by elegaanz · 3 comments
elegaanz commented 2019-05-12 19:19:22 +00:00 (Migrated from github.com)

For instance en-US or pt-BR

For instance `en-US` or `pt-BR`
I think they should be because of https://github.com/Plume-org/rocket_i18n/blob/master/src/with_rocket.rs#L24 and https://github.com/Plume-org/rocket_i18n/blob/master/src/with_actix.rs#L50 ? Or did you mean somewhere else?
elegaanz commented 2019-05-12 19:27:17 +00:00 (Migrated from github.com)

Yes, but my concern was more about making sure they are working with gettext-macros too, and that the two-parts version is correctly used when needed if the one-part version is also available (not sure if I'm clear, sorry).

Yes, but my concern was more about making sure they are working with `gettext-macros` too, and that the two-parts version is correctly used when needed if the one-part version is also available (not sure if I'm clear, sorry).
Valodim commented 2019-11-14 12:46:31 +00:00 (Migrated from github.com)

If I'm reading that code right, the locale part (so -Lo out of ln-Lo) is simply ignored?

I believe it is very important to support this because of the Chinese language. The locales "Chinese (Traditional)" and "Chinese (Simplified)" are quite different, but share the zh language prefix.

If I'm reading that code right, the locale part (so `-Lo` out of `ln-Lo`) is simply ignored? I believe it is very important to support this because of the Chinese language. The locales "Chinese (Traditional)" and "Chinese (Simplified)" are quite different, but share the `zh` language prefix.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: plume/rocket_i18n#17
No description provided.