Skip to content

Commit

Permalink
Merge pull request #208 from WildAid/Localize_to_French
Browse files Browse the repository at this point in the history
Localize to french
  • Loading branch information
am-MongoDB committed Sep 1, 2020
2 parents fd1e055 + d660b94 commit 4e88774
Show file tree
Hide file tree
Showing 13 changed files with 218 additions and 259 deletions.
19 changes: 19 additions & 0 deletions LOCALIZATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Localization files are in Localization/CODE.lproj/Localizable.strings
e.g.
Localization/es-419/Localizable.strings
Localization/fr/Localizable.strings

The format is:
The string found in the code (English)
=
The string to localize to
;

e.g.:
"Yes" = "Oui";

To see if a file has any non-translated items
Run this to find all the strings that are the same on both sides of the equals sign:
`cut -f1 -d\= Localizable.strings > first && cut -f2 -d\= Localizable.strings | sed 's/.$//' > last && diff -wy first last | grep -v \| && rm first last`

This may give some false positives, e.g. in French, "Photo" and "Date" are the same in English and French.
49 changes: 15 additions & 34 deletions Localization/es-419.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
"Are you sure you want to replace captain?" = "Are you sure you want to replace captain?";
"Board Vessel" = "Board Vessel";
"Cancel" = "Cancel";
"Cannot access reports" = "Cannot access reports";
"Captain" = "Captain";
"Change status to \"On Duty\"?" = "Change status to \"On Duty\"?";
"Change status to \"At Sea\"?" = "Change status to \"At Sea\"?";
"Continue editing" = "Continue editing";
"Continue with empty fields?" = "Continue with empty fields?";
"Date: " = "Date: ";
Expand All @@ -22,7 +21,7 @@
"No Results for “%@“" = "No Results for “%@“";
"Ok" = "Ok";
"Permit #" = "Permit #";
"Please, input name or licence" = "Please, input name or licence";
"Please, input name or license" = "Please, input name or license";
"Prefill" = "Prefill";
"Prefill Vessel Information From Previous Boarding?" = "Prefill Vessel Information From Previous Boarding?";
"Previous Boardings" = "Previous Boardings";
Expand All @@ -35,42 +34,21 @@
"Vessel: " = "Vessel: ";
"Yes" = "Yes";
"You'll still be able to edit fields" = "You'll still be able to edit fields";
"You're currently off duty" = "You're currently off duty";
"Fishing" = "Fishing";
"Transiting" = "Transiting";
"Offloading" = "Offloading";
"Other" = "Other" ;
"You're currently on land" = "You're currently on land";
"Other" = "Other";
"Search Crew" = "Search Crew";
"Electronic Monitoring System" = "Electronic Monitoring System";
"Search EMS's" = "Search EMS's";
"Tuna" = "Tuna";
"Groundfish" = "Groundfish";
"Bluefish" = "Bluefish";
"Trawl" = "Trawl";
"Long-line" = "Long-line";
"Nets" = "Nets";
"Flag State" = "Flag State";
"Search Flag State" = "Search Flag State";
"Species" = "Species";
"Search Species" = "Search Species";
"Tuna" = "Tuna";
"Swordfish" = "Swordfish";
"Clownfish" = "Clownfish";
"Fish and Game code 7850(a)" = "Fish and Game code 7850(a)";
"No commercial license" = "No commercial license";
"Fish and Game code 7145(a)" = "Fish and Game code 7145(a)";
"Fishing without a license" = "Fishing without a license";
"Take/Possess undersize Dungeness crab" = "Take/Possess undersize Dungeness crab";
"Take in violation of Federal Regulations" = "Take in violation of Federal Regulations";
"California" = "California";
"Use barbed hooks for Salmon" = "Use barbed hooks for Salmon";
"Crew Member" = "Crew Member";
"Captain's Name" = "Captain's Name";
"Crew Member Name" = "Crew Member Name";
"License Number" = "License Number";
"Remove Note" = "Remove Note";
"Add Note" = "Add Note";
"Risk" = "Risk";
"Reason for amber" = "Reason for amber";
"Last Delivery" = "Last Delivery";
"Date" = "Date";
Expand Down Expand Up @@ -103,7 +81,6 @@
"Fishery" = "Fishery";
"Gear" = "Gear";
"Note" = "Note";
"Boarding" = "Boarding";
"Weight" = "Weight";
"Count" = "Count";
"Latitude" = "Latitude";
Expand All @@ -114,7 +91,6 @@
"Search" = "Search";
"Search Vessels" = "Search Vessels";
"Back" = "Back";
"Cancel" = "Cancel";
"Last Boarding" = "Last Boarding";
"Crew Members" = "Crew Members";
"Boardings" = "Boardings";
Expand All @@ -126,8 +102,13 @@
"Date & Time" = "Date & Time";
"Time" = "Time";
"Skip the following sections?" = "Skip the following sections?";
"On Duty" = "On Duty";
"Off Duty" = "Off Duty";
"At Sea" = "At Sea";
"On Land" = "On Land";
"Patrol Summary" = "Patrol Summary";
"Continue" = "Continue";
"Time At Sea" = "Time At Sea";
"Start Time" = "Start Time";
"End Time" = "End Time";
"Find records" = "Find records";
"Red" = "Red";
"Amber" = "Amber";
Expand All @@ -148,7 +129,7 @@
"Tonnes" = "Tonnes";
"Weight & Count" = "Weight & Count";
"Search Activities" = "Search Activities";
"Search Fishery" = "Search Fishery";
"Search Fisheries" = "Search Fisheries";
"Search Gear" = "Search Gear" ;
"Gear Type" = "Gear Type";
"Search Violations" = "Search Violations";
Expand All @@ -160,16 +141,16 @@
"Email/Username" = "Email/Username";
"Password" = "Password";
"Cancel boarding?" = "Cancel boarding?";
"This boarding will not be saved" = "This boarding will not be saved";
"This boarding will not be saved." = "This boarding will not be saved.";
"Cancel Boarding" = "Cancel Boarding";
"Log In" = "Log In";
"Name" = "Name";
"Type" = "Type";
"You sure you want to logout?" = "You sure you want to logout?";
"You can only log back in once you have cellular service or are connected to WIFI with internet" = "You can only log back in once you have cellular service or are connected to WIFI with internet";
"Are you still on duty?" = "Are you still on duty?";
"Are you still at sea?" = "Are you still at sea?";
"It has been %@ hours after closing the application" = "It has been %@ hours after closing the application";
"It has been %@ hours after starting of your duty." = "It has been %@ hours after starting of your duty.";
"It has been %@ hours since you went to sea." = "It has been %@ hours since you went to sea.";
"Camera" = "Camera";
"Photo Library" = "Photo Library";
"Change profile picture" = "Change profile picture";
Expand Down

0 comments on commit 4e88774

Please sign in to comment.