From 4642d84526235fe22c425de01280974e5194c4eb Mon Sep 17 00:00:00 2001 From: polluks Date: Thu, 3 Dec 2015 13:36:31 +0000 Subject: [PATCH] Added Slovak and Slovene languages; Montenegro country and flag. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@51225 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/locale/countries/greece.c | 4 +- .../locale/countries/makecountry/countryprefs.c | 2 +- .../locale/countries/{greece.c => montenegro.c} | 43 ++++----- workbench/locale/flags/countries/Montenegro | Bin 0 -> 538 bytes workbench/locale/languages/slovak.c | 99 +++++++++++++++++++++ workbench/locale/languages/slovene.c | 98 ++++++++++++++++++++ 6 files changed, 219 insertions(+), 27 deletions(-) copy workbench/locale/countries/{greece.c => montenegro.c} (67%) create mode 100644 workbench/locale/flags/countries/Montenegro create mode 100644 workbench/locale/languages/slovak.c create mode 100644 workbench/locale/languages/slovene.c diff --git a/workbench/locale/countries/greece.c b/workbench/locale/countries/greece.c index 1a59804102..144d1cc0ab 100644 --- a/workbench/locale/countries/greece.c +++ b/workbench/locale/countries/greece.c @@ -52,7 +52,7 @@ struct IntCountryPrefs greecePrefs = 2, 3, /* Currency symbol, Small currency symbol */ - "Euro", "Cent", + "Euro", "Lepto", /* Int CS, this is the ISO 4217 symbol, followed by the character to separate that symbol from the rest of the money. (\x00 for none). @@ -61,7 +61,7 @@ struct IntCountryPrefs greecePrefs = #else 0, 3, "drx", "d", - "DRX", + "GRD", #endif /* Mon +ve sign, +ve space sep, +ve sign pos, +ve cs pos */ "", SS_SPACE, SP_PREC_ALL, CSP_PRECEDES, diff --git a/workbench/locale/countries/makecountry/countryprefs.c b/workbench/locale/countries/makecountry/countryprefs.c index 3191cd62b8..fd9d1a13e5 100644 --- a/workbench/locale/countries/makecountry/countryprefs.c +++ b/workbench/locale/countries/makecountry/countryprefs.c @@ -1,5 +1,5 @@ /* - Copyright © 2008-2103, The AROS Development Team. All rights reserved. + Copyright © 2008-2013, The AROS Development Team. All rights reserved. $Id$ Desc: makecountry code that needs access to AROS structures and types diff --git a/workbench/locale/countries/greece.c b/workbench/locale/countries/montenegro.c similarity index 67% copy from workbench/locale/countries/greece.c copy to workbench/locale/countries/montenegro.c index 1a59804102..ac18cc3b5b 100644 --- a/workbench/locale/countries/greece.c +++ b/workbench/locale/countries/montenegro.c @@ -1,40 +1,40 @@ /* - Copyright © 1995-2013, The AROS Development Team. All rights reserved. + Copyright © 1995-2015, The AROS Development Team. All rights reserved. $Id$ - Desc: Country data for Hellas (Greece) - Author: George Sokianos + Desc: Country data for Crna Gora (Montenegro) + Author: Stefan Haubenthal */ #include "country_locale.h" #include -struct IntCountryPrefs greecePrefs = +struct IntCountryPrefs croatiaPrefs = { { /* Reserved */ { 0, 0, 0, 0 }, /* Country code (licence plate number), telephone code, measuring system */ - MAKE_ID('G','R',0,0), 30, MS_ISO, + MAKE_ID('M','N','E',0), 382, MS_ISO, /* Date time format, date format, time format */ - "%d/%m/%Y %q:%M:%S", - "%A %e %B %Y", - "%q:%M:%S", + "%A, %e. %B %Y. %H:%M:%S", + "%A, %e. %B %Y.", + "%H:%M:%S", /* Short datetime, short date, short time formats */ - "%H:%M:%S %d/%m/%Y", - "%e-%b-%Y", + "%d.%m.%y. %H:%M:%S", + "%d.%m.%y.", "%H:%M:%S", /* Decimal point, group separator, frac group separator */ - ",", ".", "", + ",", ".", ".", /* For grouping rules, see */ /* Grouping, Frac Grouping */ - { 3 }, { 255 }, + { 3 }, { 3 }, /* Mon dec pt, mon group sep, mon frac group sep */ ",", ".", ".", @@ -42,14 +42,13 @@ struct IntCountryPrefs greecePrefs = /* Mon Grouping, Mon frac grouping */ { 3 }, { 3 }, -#ifdef _EURO /* Mon Frac digits, Mon IntFrac digits, then number of digits in the fractional part of the money value. Most countries that use dollars and cents, would have 2 for this value (As would many of those you don't). */ - 2, 3, + 2, 2, /* Currency symbol, Small currency symbol */ "Euro", "Cent", @@ -58,21 +57,17 @@ struct IntCountryPrefs greecePrefs = separate that symbol from the rest of the money. (\x00 for none). */ "EUR", -#else - 0, 3, - "drx", "d", - "DRX", -#endif + /* Mon +ve sign, +ve space sep, +ve sign pos, +ve cs pos */ - "", SS_SPACE, SP_PREC_ALL, CSP_PRECEDES, + "", SS_SPACE, SP_PREC_ALL, CSP_SUCCEEDS, /* Mon -ve sign, -ve space sep, -ve sign pos, -ve cs pos */ - "-", SS_SPACE, SP_SUCC_CURR, CSP_PRECEDES, + "-", SS_SPACE, SP_PREC_ALL, CSP_SUCCEEDS, /* Calendar type */ CT_7MON }, - "$VER: greece.country 44.1 (06.06.2015)", - "Hellas", - "Countries/Greece" + "$VER: montenegro.country 44.0 (03.12.2015)", + "Crna Gora", + "Countries/Montenegro" }; diff --git a/workbench/locale/flags/countries/Montenegro b/workbench/locale/flags/countries/Montenegro new file mode 100644 index 0000000000000000000000000000000000000000..984ca048619acdf2b892b43238d6f4e4cde9edb9 GIT binary patch literal 538 zcwTLgKS%;`6vy8k(a;bkK{f<8HysU8;9!@CN{5FaRD(kxjOHRvFfB6(4R z1pOf*#6hJfBnYmCatKZ;5ONS2f`a_@-VbW2gZtcjU%tQZd-wAMf+~P$_suA(qI%r` zFbG31fM4hV0VxR7PpeZJHZo(ZQPUfxs9AKG>7<#~%vh`z)k<;Mh))_DWZH$O-(tUe(xooC3h zGLPH|lU|A3BcGiM$b7zx-0PBVozu?iPMUH$IY#-6=SZ~egGD*TVL$21w6m3?S*g|) z@)*ef;uuA4XWxCalendarType. + */ + "nedeãa", "pondelok", "utorok", "streda", "îtvrtok", + "piatok", "sobota", + + /* Abbreviated days of the week */ + "Ne", "Po", "Ut", "St", "Ît", "Pi", "So", + + /* Months of the year */ + "január", "február", "marec", + "apríl", "máj", "jún", + "júl", "august", "september", + "október", "november", "december", + + /* Abbreviated months of the year */ + "jan", "feb", "mar", "apr", "máj", "jún", + "júl", "aug", "sep", "okt", "nov", "dec", + + "Áno", /* Yes, affirmative response */ + "Nie", /* No/negative response */ + + /* AM/PM strings AM 0000 -> 1159, PM 1200 -> 2359 */ + "doob.", "poob.", + + /* Soft and hard hyphens */ + "\xAD", "-", + + /* Open and close quotes */ + "\"", "\"", + + /* Days: But not actual day names + Yesterday - the day before the current + Today - the current day + Tomorrow - the next day + Future. + */ + "vçera", "dnes", "zajtra", "budúcnosï", + + /* Native language name */ + NLANGSTR +}; + +/* This is the end of ROMtag marker. */ +const char end=0; diff --git a/workbench/locale/languages/slovene.c b/workbench/locale/languages/slovene.c new file mode 100644 index 0000000000..d2f9564159 --- /dev/null +++ b/workbench/locale/languages/slovene.c @@ -0,0 +1,98 @@ +/* + Copyright © 1995-2015, The AROS Development Team. All rights reserved. + $Id$ + + Desc: slovene.language description file. +*/ + +#define LANGSTR "slovene" /* String version of above */ +#define NLANGSTR "sloven¹èina" /* Native version of LANGSTR */ +#define LANGVER 41 /* Version number of language */ +#define LANGREV 0 /* Revision number of language */ +#define LANGTAG "\0$VER: " LANGSTR ".language 41.0 (09.07.2015)" +#define NLANGTAG "$NLANG:" NLANGSTR + +#include "lang_openclose.inc" +#include "lang_getlangstring.inc" + +/* ----------------------------------------------------------------------- + Library function table - you will need to alter this + I have this right here at the end of the library so that I do not + have to have prototypes for the functions. Although you could do that. + ----------------------------------------------------------------------- */ + +void *const functable[] = +{ + &AROS_SLIB_ENTRY(open,language,1), + &AROS_SLIB_ENTRY(close,language,2), + &AROS_SLIB_ENTRY(expunge,language,3), + &AROS_SLIB_ENTRY(null,language,0), + &AROS_SLIB_ENTRY(mask,language,5), + + /* Note, shorter function table, as only getlangstring is used */ + + /* 0 - 3 */ + &AROS_SLIB_ENTRY(null, language, 0), + &AROS_SLIB_ENTRY(null, language, 0), + &AROS_SLIB_ENTRY(null, language, 0), + &AROS_SLIB_ENTRY(getlangstring, language, 9), + (void *)-1 +}; + +/* + Note how only the required data structures are kept... + + This is the list of strings. It is an array of pointers to strings, + although how it is laid out is implementation dependant. +*/ +const STRPTR ___strings[] = +{ + /* A blank string */ + "", + + /* The days of the week. Starts with the first day of the week. + In English this would be Sunday, this depends upon the settings + of Locale->CalendarType. + */ + "Nedelja", "Ponedeljek", "Torek", "Sreda", "Èetrtek", + "Petek", "Sobota", + + /* Abbreviated days of the week */ + "Ned", "Pon", "Tor", "Sre", "Èet", "Pet", "Sob", + + /* Months of the year */ + "Januar", "Februar", "Marec", + "April", "Maj", "Junij", + "Julij", "Avgust", "September", + "Oktober", "November", "December", + + /* Abbreviated months of the year */ + "Jan", "Feb", "Mar", "Apr", "Maj", "Jun", + "Jul", "Avg", "Sep", "Okt", "Nov", "Dec", + + "Da", /* Yes, affirmative response */ + "Ne", /* No/negative response */ + + /* AM/PM strings AM 0000 -> 1159, PM 1200 -> 2359 */ + "dop", "pop", + + /* Soft and hard hyphens */ + "\xAD", "-", + + /* Open and close quotes */ + "\"", "\"", + + /* Days: But not actual day names + Yesterday - the day before the current + Today - the current day + Tomorrow - the next day + Future. + */ + "Vèeraj", "Danes", "Jutri", "Prihodnost", + + /* Native language name */ + NLANGSTR +}; + +/* This is the end of ROMtag marker. */ +const char end=0; -- 2.11.4.GIT