Skip to content

Commit 9c7fc14

Browse files
committed
fixed some translation of alt_wpts fields
1 parent b0ccd9b commit 9c7fc14

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

okapi/services/caches/geocaches/WebService.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,12 @@ public static function call(OkapiRequest $request)
12401240
# All other OKAPI types map to 'Reference Point'.
12411241
];
12421242

1243+
# Set the language for "Stage", "User location" etc. Since all
1244+
# number formatting (meanwhile) is locale-independent, it should
1245+
# be safe to change gettext domain for all the alt_wpts generation.
1246+
1247+
Okapi::gettext_domain_init($langprefs);
1248+
12431249
foreach ($cacheid2waypoints as $cache_id => $waypoints)
12441250
{
12451251
$cache_code = $cacheid2wptcode[$cache_id];
@@ -1316,6 +1322,8 @@ public static function call(OkapiRequest $request)
13161322
}
13171323
}
13181324
}
1325+
1326+
Okapi::gettext_domain_restore();
13191327
}
13201328

13211329
# Country and/or region

0 commit comments

Comments
 (0)