Add namespaces to From and To datetime labels
The following discussion from !50621 (merged) should be addressed:
-
@farias-gl started a discussion: (+2 comments) nit-pick: I know this is a very general word to translate, but do you think it might be worth name spacing it to something that indicates it is in reference to time?
I'm unsure if something like "3 to 6" has different meanings in other languages when not referring to time.
For example in spanish: Translating the string that contains 'to'
I use to run -> Yo solía correr
3 to 5 -> 3 a 5
to
is translated to different strings entirely depending if it is referring to time. In one case its justa
, but then get's translated tosolia
in a different context.
A translator has already commented that this particular string lacks sufficient context:
Perhaps prefixing the From
and To
strings with DateTime
(or just Time
?) would do.
Relevant files:
app/assets/javascripts/vue_shared/components/date_time_picker/date_time_picker.vue
app/assets/javascripts/vue_shared/components/sidebar/collapsed_grouped_date_picker.vue
ee/app/assets/javascripts/oncall_schedules/components/rotations/components/add_rotation_modal.vue
Note that we should generally avoid unnecessarily changing strings, but in this case, doing so will actually improve the quality of our translations, so I think this is justified.