mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-05-21 23:22:06 +02:00
Add the TRANSLATE GENERATE command to generate a skeleton .rem file for localization.
This commit is contained in:
@@ -1239,6 +1239,29 @@ set_components_from_lat_and_long(void)
|
||||
}
|
||||
}
|
||||
|
||||
void GenerateSysvarTranslationTemplates(void)
|
||||
{
|
||||
int i;
|
||||
int j;
|
||||
char const *msg;
|
||||
for (i=0; i< (int) NUMSYSVARS; i++) {
|
||||
if (SysVarArr[i].type == TRANS_TYPE) {
|
||||
msg = SysVarArr[i].value;
|
||||
/* We've already done month and day names */
|
||||
for (j=0; j<7; j++) {
|
||||
if (!strcmp(msg, DayName[j])) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
for (j=0; j<12; j++) {
|
||||
if (!strcmp(msg, MonthName[j])) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
TranslationTemplate(msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
void
|
||||
print_sysvar_tokens(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user