Skip to content

Commit

Permalink
docs: more translator annotations for strings
Browse files Browse the repository at this point in the history
  • Loading branch information
kueda committed Oct 2, 2024
1 parent 7d2f4d9 commit 9ea070b
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 38 deletions.
4 changes: 2 additions & 2 deletions src/components/ObsEdit/MultipleObservationsArrows.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const MultipleObservationsArrows = ( {
</View>
<Heading2>
{t( "X-of-Y", {
count: currentObservationIndex + 1,
totalObservationCount: observations.length
x: currentObservationIndex + 1,
y: observations.length
} )}
</Heading2>
<View className="w-16 flex items-end">
Expand Down
2 changes: 1 addition & 1 deletion src/components/ObsEdit/OtherDataSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const OtherDataSection = ( {
// opposite of Seek (asking if wild, not if captive)
const captiveOptions = [
{
label: t( "Organism-is-wild" ),
label: t( "Data-quality-assessment-organism-is-wild" ),
value: false
},
{
Expand Down
29 changes: 20 additions & 9 deletions src/i18n/l10n/en.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -227,17 +227,27 @@ Data-quality-assessment-description-casual = This observation has not met the co
Data-quality-assessment-description-needs-id = This observation has not yet met the conditions for Research Grade status:
# Data Quality Assessment explanation when quality is Research Grade
Data-quality-assessment-description-research = It can now be used for research and featured on other websites.
# Data Quality Assessment metric
Data-quality-assessment-evidence-of-organism = Evidence of organism
# Data Quality Assessment metric
Data-quality-assessment-has-photos-or-sounds = Has Photos or Sounds
# Data Quality Assessment metric
Data-quality-assessment-id-supported-by-two-or-more = Has ID supported by two or more
# Data Quality Assessment metric
Data-quality-assessment-location-is-accurate = Location is accurate
# Data Quality Assessment metric
Data-quality-assessment-location-specified = Location specified
# Data Quality Assessment metric
Data-quality-assessment-organism-is-wild = Organism is wild
# Data Quality Assessment metric
Data-quality-assessment-recent-evidence-of-organism = Recent evidence of an organism
# Data Quality Assessment metric
Data-quality-assessment-single-subject = Evidence related to a single subject
# Data Quality Assessment description of the final quality grade when Casual
Data-quality-assessment-title-casual = This observation is Casual Grade
# Data Quality Assessment description of the final quality grade when Needs ID
Data-quality-assessment-title-needs-id = This observation Needs ID
# declares the current data quality status of the observation when quality is Research Grade
# Data Quality Assessment description of the final quality grade when Research Grade
Data-quality-assessment-title-research = This observation is Research Grade!
Data-quality-casual-description = This observation needs more information verified to be considered verifiable
Data-quality-needs-id-description = This observation needs more identifications to reach research grade
Expand Down Expand Up @@ -613,8 +623,9 @@ Navigates-to-taxon-details = Navigates to taxon details
Navigates-to-user-profile = Navigates to user profile
# Label for button that takes you to your observations
Navigates-to-your-observations = Navigates to your observations
# Header for nearby projects
# Header or button label for content that is near the user's current location
NEARBY = NEARBY
# Header or button label for content that is near the user's current location
Nearby = Nearby
# Quality grade indicating observation still needs more identifications
Needs-ID--quality-grade = Needs ID
Expand Down Expand Up @@ -715,7 +726,6 @@ Opens-the-AI-camera = Opens the AI camera
Opens-the-side-drawer-menu = Opens the side drawer menu.
# Picker prompt on observation edit
Organism-is-captive = Organism is captive
Organism-is-wild = Organism is wild
Organisms-that-are-identified-to-species = Organisms that are identified to species rank or below
# Generic option in a list for unanticipated cases, e.g. a choice to manually
# enter an explanation for why you are flagging something instead of choosing
Expand Down Expand Up @@ -1171,12 +1181,13 @@ X-Identifiers =
}
# Subheader for number of project members screen
X-MEMBERS = { $count } MEMBERS
# Banner above Explore Map showing total number of results
# Shows number of observations in a variety of contexts
X-Observations =
{ $count ->
[one] 1 Observation
*[other] { $count } Observations
}
# Shows number of observations in a variety of contexts
X-observations =
{ $count ->
[one] 1 observation
Expand All @@ -1198,12 +1209,12 @@ X-Observers =
*[other] { $count } Observers
}
X-of-Y =
{ $count ->
{ $x ->
[one] 1
*[other] { $count }
} { $totalObservationCount ->
[one] of { $totalObservationCount }
*[other] of { $totalObservationCount }
*[other] { $x }
} { $y ->
[one] of { $y }
*[other] of { $y }
}
# Displays number of photos attached to an observation in the Media Viewer
X-PHOTOS =
Expand Down
69 changes: 52 additions & 17 deletions src/i18n/l10n/en.ftl.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,18 +321,48 @@
"comment": "Data Quality Assessment explanation when quality is Research Grade",
"val": "It can now be used for research and featured on other websites."
},
"Data-quality-assessment-evidence-of-organism": "Evidence of organism",
"Data-quality-assessment-has-photos-or-sounds": "Has Photos or Sounds",
"Data-quality-assessment-id-supported-by-two-or-more": "Has ID supported by two or more",
"Data-quality-assessment-location-is-accurate": "Location is accurate",
"Data-quality-assessment-location-specified": "Location specified",
"Data-quality-assessment-organism-is-wild": "Organism is wild",
"Data-quality-assessment-recent-evidence-of-organism": "Recent evidence of an organism",
"Data-quality-assessment-single-subject": "Evidence related to a single subject",
"Data-quality-assessment-title-casual": "This observation is Casual Grade",
"Data-quality-assessment-title-needs-id": "This observation Needs ID",
"Data-quality-assessment-evidence-of-organism": {
"comment": "Data Quality Assessment metric",
"val": "Evidence of organism"
},
"Data-quality-assessment-has-photos-or-sounds": {
"comment": "Data Quality Assessment metric",
"val": "Has Photos or Sounds"
},
"Data-quality-assessment-id-supported-by-two-or-more": {
"comment": "Data Quality Assessment metric",
"val": "Has ID supported by two or more"
},
"Data-quality-assessment-location-is-accurate": {
"comment": "Data Quality Assessment metric",
"val": "Location is accurate"
},
"Data-quality-assessment-location-specified": {
"comment": "Data Quality Assessment metric",
"val": "Location specified"
},
"Data-quality-assessment-organism-is-wild": {
"comment": "Data Quality Assessment metric",
"val": "Organism is wild"
},
"Data-quality-assessment-recent-evidence-of-organism": {
"comment": "Data Quality Assessment metric",
"val": "Recent evidence of an organism"
},
"Data-quality-assessment-single-subject": {
"comment": "Data Quality Assessment metric",
"val": "Evidence related to a single subject"
},
"Data-quality-assessment-title-casual": {
"comment": "Data Quality Assessment description of the final quality grade when Casual",
"val": "This observation is Casual Grade"
},
"Data-quality-assessment-title-needs-id": {
"comment": "Data Quality Assessment description of the final quality grade when Needs ID",
"val": "This observation Needs ID"
},
"Data-quality-assessment-title-research": {
"comment": "declares the current data quality status of the observation when quality is Research Grade",
"comment": "Data Quality Assessment description of the final quality grade when Research Grade",
"val": "This observation is Research Grade!"
},
"Data-quality-casual-description": "This observation needs more information verified to be considered verifiable",
Expand Down Expand Up @@ -821,10 +851,13 @@
"val": "Navigates to your observations"
},
"NEARBY": {
"comment": "Header for nearby projects",
"comment": "Header or button label for content that is near the user's current location",
"val": "NEARBY"
},
"Nearby": "Nearby",
"Nearby": {
"comment": "Header or button label for content that is near the user's current location",
"val": "Nearby"
},
"Needs-ID--quality-grade": {
"comment": "Quality grade indicating observation still needs more identifications",
"val": "Needs ID"
Expand Down Expand Up @@ -975,7 +1008,6 @@
"comment": "Picker prompt on observation edit",
"val": "Organism is captive"
},
"Organism-is-wild": "Organism is wild",
"Organisms-that-are-identified-to-species": "Organisms that are identified to species rank or below",
"Other": {
"comment": "Generic option in a list for unanticipated cases, e.g. a choice to manually\nenter an explanation for why you are flagging something instead of choosing\none of the existing options",
Expand Down Expand Up @@ -1553,14 +1585,17 @@
"val": "{ $count } MEMBERS"
},
"X-Observations": {
"comment": "Banner above Explore Map showing total number of results",
"comment": "Shows number of observations in a variety of contexts",
"val": "{ $count ->\n [one] 1 Observation\n *[other] { $count } Observations\n}"
},
"X-observations": "{ $count ->\n [one] 1 observation\n *[other] { $count } observations\n}",
"X-observations": {
"comment": "Shows number of observations in a variety of contexts",
"val": "{ $count ->\n [one] 1 observation\n *[other] { $count } observations\n}"
},
"X-observations-deleted": "{ $count ->\n [one] 1 observation deleted\n *[other] { $count } observations deleted\n}",
"X-observations-uploaded": "{ $count ->\n [one] 1 observation uploaded\n *[other] { $count } observations uploaded\n}",
"X-Observers": "{ $count ->\n [one] { $count } Observer\n *[other] { $count } Observers\n}",
"X-of-Y": "{ $count ->\n [one] 1\n *[other] { $count }\n} { $totalObservationCount ->\n [one] of { $totalObservationCount }\n *[other] of { $totalObservationCount }\n}",
"X-of-Y": "{ $x ->\n [one] 1\n *[other] { $x }\n} { $y ->\n [one] of { $y }\n *[other] of { $y }\n}",
"X-PHOTOS": {
"comment": "Displays number of photos attached to an observation in the Media Viewer",
"val": "{ $photoCount ->\n [one] 1 PHOTO\n *[other] { $photoCount } PHOTOS\n}"
Expand Down
29 changes: 20 additions & 9 deletions src/i18n/strings.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -227,17 +227,27 @@ Data-quality-assessment-description-casual = This observation has not met the co
Data-quality-assessment-description-needs-id = This observation has not yet met the conditions for Research Grade status:
# Data Quality Assessment explanation when quality is Research Grade
Data-quality-assessment-description-research = It can now be used for research and featured on other websites.
# Data Quality Assessment metric
Data-quality-assessment-evidence-of-organism = Evidence of organism
# Data Quality Assessment metric
Data-quality-assessment-has-photos-or-sounds = Has Photos or Sounds
# Data Quality Assessment metric
Data-quality-assessment-id-supported-by-two-or-more = Has ID supported by two or more
# Data Quality Assessment metric
Data-quality-assessment-location-is-accurate = Location is accurate
# Data Quality Assessment metric
Data-quality-assessment-location-specified = Location specified
# Data Quality Assessment metric
Data-quality-assessment-organism-is-wild = Organism is wild
# Data Quality Assessment metric
Data-quality-assessment-recent-evidence-of-organism = Recent evidence of an organism
# Data Quality Assessment metric
Data-quality-assessment-single-subject = Evidence related to a single subject
# Data Quality Assessment description of the final quality grade when Casual
Data-quality-assessment-title-casual = This observation is Casual Grade
# Data Quality Assessment description of the final quality grade when Needs ID
Data-quality-assessment-title-needs-id = This observation Needs ID
# declares the current data quality status of the observation when quality is Research Grade
# Data Quality Assessment description of the final quality grade when Research Grade
Data-quality-assessment-title-research = This observation is Research Grade!
Data-quality-casual-description = This observation needs more information verified to be considered verifiable
Data-quality-needs-id-description = This observation needs more identifications to reach research grade
Expand Down Expand Up @@ -613,8 +623,9 @@ Navigates-to-taxon-details = Navigates to taxon details
Navigates-to-user-profile = Navigates to user profile
# Label for button that takes you to your observations
Navigates-to-your-observations = Navigates to your observations
# Header for nearby projects
# Header or button label for content that is near the user's current location
NEARBY = NEARBY
# Header or button label for content that is near the user's current location
Nearby = Nearby
# Quality grade indicating observation still needs more identifications
Needs-ID--quality-grade = Needs ID
Expand Down Expand Up @@ -715,7 +726,6 @@ Opens-the-AI-camera = Opens the AI camera
Opens-the-side-drawer-menu = Opens the side drawer menu.
# Picker prompt on observation edit
Organism-is-captive = Organism is captive
Organism-is-wild = Organism is wild
Organisms-that-are-identified-to-species = Organisms that are identified to species rank or below
# Generic option in a list for unanticipated cases, e.g. a choice to manually
# enter an explanation for why you are flagging something instead of choosing
Expand Down Expand Up @@ -1171,12 +1181,13 @@ X-Identifiers =
}
# Subheader for number of project members screen
X-MEMBERS = { $count } MEMBERS
# Banner above Explore Map showing total number of results
# Shows number of observations in a variety of contexts
X-Observations =
{ $count ->
[one] 1 Observation
*[other] { $count } Observations
}
# Shows number of observations in a variety of contexts
X-observations =
{ $count ->
[one] 1 observation
Expand All @@ -1198,12 +1209,12 @@ X-Observers =
*[other] { $count } Observers
}
X-of-Y =
{ $count ->
{ $x ->
[one] 1
*[other] { $count }
} { $totalObservationCount ->
[one] of { $totalObservationCount }
*[other] of { $totalObservationCount }
*[other] { $x }
} { $y ->
[one] of { $y }
*[other] of { $y }
}
# Displays number of photos attached to an observation in the Media Viewer
X-PHOTOS =
Expand Down

0 comments on commit 9ea070b

Please sign in to comment.