[california] Add link to TranslatingQuickAdd wiki page in PO file comments



commit 15ddf4bbe0a859502405167775a2a3c10f976c52
Author: Jim Nelson <jim yorba org>
Date:   Thu May 8 15:18:20 2014 -0700

    Add link to TranslatingQuickAdd wiki page in PO file comments
    
    Wiki page is to assist translators who have trouble with words used
    by Quick Add parser.

 src/calendar/calendar.vala   |    8 ++++++++
 src/component/component.vala |    8 ++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/calendar/calendar.vala b/src/calendar/calendar.vala
index b4edb9d..97df645 100644
--- a/src/calendar/calendar.vala
+++ b/src/calendar/calendar.vala
@@ -141,14 +141,17 @@ public void init() throws Error {
     
     // Used by quick-add to convert a user's day unit into an internal value.  Common abbreviations
     // (without punctuation) should be included.  Each word must be separated by semi-colons.
+    // For more information see https://wiki.gnome.org/Apps/California/TranslatingQuickAdd
     UNIT_DAYS = _("day;days;").casefold().split(";");
     
     // Used by quick-add to convert a user's hours unit into an internal value.  Common abbreviations
     // (without punctuation) should be included.  Each word must be separated by semi-colons.
+    // For more information see https://wiki.gnome.org/Apps/California/TranslatingQuickAdd
     UNIT_HOURS = _("hour;hours;hr;hrs").casefold().split(";");
     
     // Used by quick-add to convert a user's minute unit into an internal value.  Common abbreviations
     // (without punctuation) should be included.  Each word must be separated by semi-colons.
+    // For more information see https://wiki.gnome.org/Apps/California/TranslatingQuickAdd
     UNIT_MINS = _("minute;minutes;min;mins").casefold().split(";");
     
     // return LC_MESSAGES back to proper locale and return LANGUAGE environment variable
@@ -157,7 +160,12 @@ public void init() throws Error {
     if (language_env != null)
         Environment.set_variable("LANGUAGE", language_env, true);
     
+    // Used by quick-add to indicate the user wants to create an event at midnight.
+    // For more information see https://wiki.gnome.org/Apps/California/TranslatingQuickAdd
     MIDNIGHT = _("midnight");
+    
+    // Used by quick-add to indicate the user wants to create an event at noon.
+    // For more information see https://wiki.gnome.org/Apps/California/TranslatingQuickAdd
     NOON = _("noon");
     
     // This init() throws an IOError, so perform before others to prevent unnecessary unwinding
diff --git a/src/component/component.vala b/src/component/component.vala
index e9cdffd..9c917c8 100644
--- a/src/component/component.vala
+++ b/src/component/component.vala
@@ -35,12 +35,15 @@ public void init() throws Error {
     Calendar.init();
     
     // Used by quick-add to indicate the user wants to create an event for today.
+    // For more information see https://wiki.gnome.org/Apps/California/TranslatingQuickAdd
     TODAY = _("today").casefold();
     
     // Used by quick-add to indicate the user wants to create an event for tomorrow.
+    // For more information see https://wiki.gnome.org/Apps/California/TranslatingQuickAdd
     TOMORROW = _("tomorrow").casefold();
     
     // Used by quick-add to indicate the user wants to create an event for yesterday.
+    // For more information see https://wiki.gnome.org/Apps/California/TranslatingQuickAdd
     YESTERDAY = _("yesterday").casefold();
     
     // Used by quick-add to determine if the word is a TIME preposition (indicating a
@@ -49,6 +52,7 @@ public void init() throws Error {
     // be duplicated in the location prepositions list (elsewhere) but not another time list.
     // The list can be empty, but that will limit the parser.
     // Examples: "at 9am", "from 10pm to 11:30pm", "on monday"
+    // For more information see https://wiki.gnome.org/Apps/California/TranslatingQuickAdd
     TIME_PREPOSITIONS = _("at;from;to;on;").casefold().split(";");
     
     // Used by quick-add to determine if the word is a DURATION preposition (indicating a
@@ -57,6 +61,7 @@ public void init() throws Error {
     // be duplicated in the location prepositions list (elsewhere) but not another time list.
     // The list can be empty, but that will limit the parser.
     // Examples: "for 3 hours", "for 90 minutes"
+    // For more information see https://wiki.gnome.org/Apps/California/TranslatingQuickAdd
     DURATION_PREPOSITIONS = _("for;").casefold().split(";");
     
     // Used by quick-add to determine if the word is a DELAY preposition (indicating a specific
@@ -65,6 +70,7 @@ public void init() throws Error {
     // be duplicated in the location prepositions list (elsewhere) but not another time list.
     // The list can be empty, but that will limit the parser.
     // Example: "in 3 hours" (meaning 3 hours from now)
+    // For more information see https://wiki.gnome.org/Apps/California/TranslatingQuickAdd
     DELAY_PREPOSITIONS = _("in;").casefold().split(";");
     
     // Used by quick-add to determine if the word is a LOCATION preposition (indicating a
@@ -73,6 +79,7 @@ public void init() throws Error {
     // the time prepositions list (elsewhere).  The list can be empty, but that will limit the
     // parser.
     // Example: "at supermarket", "at Eiffel Tower"
+    // For more information see https://wiki.gnome.org/Apps/California/TranslatingQuickAdd
     LOCATION_PREPOSITIONS = _("at;").casefold().split(";");
     
     // Used by quick-add to strip date numbers of common ordinal suffices.  Each word must be
@@ -80,6 +87,7 @@ public void init() throws Error {
     // The list can be empty, but that will limit the parser if your language supports ordinal
     // suffixes.
     // Example: "1st", "2nd", "3rd", "4th"
+    // For more information see https://wiki.gnome.org/Apps/California/TranslatingQuickAdd
     ORDINAL_SUFFIXES = _("st;nd;rd;th").casefold().split(";");
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]