summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-11-28 17:36:36 +0100
committerraveit65 <[email protected]>2020-11-28 20:49:51 +0100
commite376046e52c8b91b786bebf07a7bd58ce9d73e60 (patch)
treeee18599c8fe2af2d3935d1f975d8ec54024e2e65 /README
parentc23ecee4062929976534bdb0addddfaedaa425fa (diff)
downloadlibmateweather-e376046e52c8b91b786bebf07a7bd58ce9d73e60.tar.bz2
libmateweather-e376046e52c8b91b786bebf07a7bd58ce9d73e60.tar.xz
README: How to translate the default location data
Diffstat (limited to 'README')
-rw-r--r--README30
1 files changed, 30 insertions, 0 deletions
diff --git a/README b/README
index 6e03685..20ef8f1 100644
--- a/README
+++ b/README
@@ -11,3 +11,33 @@ a new version.
To use libmateweather in your code, you need to define the
MATEWEATHER_I_KNOW_THIS_IS_UNSTABLE preprecessor symbol, e.g. by adding
-DMATEWEATHER_I_KNOW_THIS_IS_UNSTABLE to your CFLAGS.
+
+
+HOW TO TRANSLATE THE DEFAULT LOCATION DATA
+------------------------------------------
+
+To translate the default location, enter the data for the largest city on your
+locale as folows: (Location Data for en_US.UTF-8: «Washington, D.C, US»)
+
+ msgid "'DEFAULT_LOCATION'"
+ msgstr "'Washington'"
+
+ msgid "'DEFAULT_CODE'"
+ msgstr "'KOCW'"
+
+ msgid "'DEFAULT_ZONE'"
+ msgstr "'America/New_York'"
+
+ msgid "'DEFAULT_RADAR'"
+ msgstr "' '"
+
+ msgid "'DEFAULT_COORDINATES'"
+ msgstr "'35.570557 -77.049721'"
+
+You can retrieve the required data if you have set your location on the clock
+panel applet:
+
+ $ dconf read /org/mate/panel/objects/clock/prefs/cities
+ ['<location name="" city="Washington" timezone="America/New_York"
+ latitude="35.570557" longitude="-77.049721" code="KOCW" current="false"/>']
+