File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
okapi/services/caches/geocaches Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1240,6 +1240,12 @@ public static function call(OkapiRequest $request)
1240
1240
# All other OKAPI types map to 'Reference Point'.
1241
1241
];
1242
1242
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
+
1243
1249
foreach ($ cacheid2waypoints as $ cache_id => $ waypoints )
1244
1250
{
1245
1251
$ cache_code = $ cacheid2wptcode [$ cache_id ];
@@ -1316,6 +1322,8 @@ public static function call(OkapiRequest $request)
1316
1322
}
1317
1323
}
1318
1324
}
1325
+
1326
+ Okapi::gettext_domain_restore ();
1319
1327
}
1320
1328
1321
1329
# Country and/or region
You can’t perform that action at this time.
0 commit comments