Translations fuer den Installer gemacht

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@782 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
maniacikarus
2007-08-19 19:35:46 +00:00
parent b0835162e8
commit 1700769c9e
6 changed files with 73 additions and 16 deletions

View File

@@ -1,6 +1,7 @@
############################################################################
# Checking install/setup translations for language: en #
############################################################################
< TR_CHOOSE_FILESYSTEM
############################################################################
# Checking cgi-bin translations for language: en #
############################################################################

View File

@@ -29,6 +29,34 @@
char *de_tr[] = {
/* TR_CHOOSE_FILESYSTEM */
"Bitte waehlen Sie ihr Dateisystem aus:",
/* TR_NOT_ENOUGH_INTERFACES */
"Nicht genügend Netzwerkkarten für diese Auswahl gefunden.\n\nBenötigt: %d - Gefunden: %d\n",
/* TR_INTERFACE_CHANGE */
"Bitte wählen Sie das Interface aus das geaendert werden soll.\n\n",
/* TR_METCARD_COLOR */
"Zugewiesene Karten",
/* TR_REMOVE */
"Entfernen",
/* TR_MISSING_DNS */
"Kein DNS eingetragen\n",
/* TR_MISSING_DEFAULT */
"Kein default Gateway eingetragen.\n",
/* TR_JOURNAL_EXT3 */
"Erstelle Journal für Ext3...",
/* TR_CHOOSE_NETCARD */
"Bitte wählen Sie eine der untenstehenden Netzwerkkarten fuer die folgene Schnittstelle aus - %s.",
/* TR_NETCARDMENU2 */
"Erweitertes Netzwerkmenu",
/* TR_ERROR_INTERFACES */
"Es wurden leider keine freien Netzwerkkarten fuer die Schnittstelle in ihrem System gefunden.",
/* TR_REMOVE_CARD */
"Soll die Zuordnung der folgende Netzwerkkarte entfernt werden?",
/* TR_JOURNAL_ERROR */
"Konnte das Journal nicht erstelle, verwende ext2 Fallback.",
/* TR_FILESYSTEM */
"Dateisystemauswahl",
/* TR_ADDRESS_SETTINGS */
"Adress-Einstellungen",
/* TR_ADMIN_PASSWORD */

View File

@@ -25,6 +25,34 @@
char *en_tr[] = {
/* TR_NOT_ENOUGH_INTERFACES */
"Not enough netcards for your choice.\n\nNeeded: %d - Available: %d\n",
/* TR_INTERFACE_CHANGE */
"Please choose the interface you wish to change.\n\n",
/* TR_METCARD_COLOR */
"Assigned Cards",
/* TR_REMOVE */
"Remove",
/* TR_CHOOSE_FILESYSTEM */
"Please choose your filesystem:",
/* TR_MISSING_DNS */
"Misssing DNS.\n",
/* TR_MISSING_DEFAULT */
"Missing Default Gateway.\n",
/* TR_JOURNAL_EXT3 */
"Creating journal for Ext3...",
/* TR_CHOOSE_NETCARD */
"Please choose a networkcard for the following interface - %s.",
/* TR_NETCARDMENU2 */
"Extended Networkmenu",
/* TR_ERROR_INTERFACES */
"There are no free interfaces on your system.",
/* TR_REMOVE_CARD */
"Should the allocation for the networkcard be deleted?",
/* TR_JOURNAL_ERROR */
"Could not create the journal, using fallback to ext2.",
/* TR_FILESYSTEM */
"Choose Filesystem",
/* TR_ADDRESS_SETTINGS */
"Address settings",
/* TR_ADMIN_PASSWORD */

View File

@@ -332,8 +332,8 @@ int main(int argc, char *argv[])
goto EXIT;
if (!unattended) {
sprintf(message, "(TR) Bitte waehlen Sie ihr Dateisystem aus:");
rc = newtWinMenu("(TR) Dateisystemauswahl", message,
sprintf(message, ctr[TR_CHOOSE_FILESYSTEM]);
rc = newtWinMenu( ctr[TR_CHOOSE_FILESYSTEM], message,
50, 5, 5, 6, fstypes, &fstype, ctr[TR_OK],
ctr[TR_CANCEL], NULL);
} else {
@@ -572,16 +572,16 @@ int main(int argc, char *argv[])
replace("/harddisk/boot/grub/grub.conf", "MOUNT", "ro");
} else if (fstype == EXT3) {
snprintf(commandstring, STRING_SIZE, "tune2fs -j %s3", hdparams.devnode_part);
if (runcommandwithstatus(commandstring, "(TR) Creating journal for ext3..."))
if (runcommandwithstatus(commandstring, ctr[TR_JOURNAL_EXT3]))
{
errorbox("(TR) Unable to create journal. Going back to ext2.");
errorbox(ctr[TR_JOURNAL_ERROR]);
replace("/harddisk/etc/fstab", "FSTYPE", "ext2");
goto NOJOURNAL;
}
snprintf(commandstring, STRING_SIZE, "tune2fs -j %s4", hdparams.devnode_part);
if (runcommandwithstatus(commandstring, "(TR) Creating journal for ext3..."))
if (runcommandwithstatus(commandstring, ctr[TR_JOURNAL_EXT3]))
{
errorbox("(TR) Unable to create journal. Going back to ext2.");
errorbox(ctr[TR_JOURNAL_ERROR]);
replace("/harddisk/etc/fstab", "FSTYPE", "ext2");
goto NOJOURNAL;
}

View File

@@ -703,8 +703,8 @@ int nicmenu(int colour)
// sprintf(message, "Es wurde(n) %d freie Netzwerkkarte(n) in Ihrem System gefunden.\nBitte waehlen Sie im naechsten Dialog eine davon aus.\n", count);
// newtWinMessage("NetcardMenu", ctr[TR_OK], message);
sprintf(message, "(TR) Bitte wählen Sie eine der untenstehenden Netzwerkkarten fuer die Schnittstelle \"%s\" aus.\n", ucolourcard[colour]);
rc = newtWinMenu("(TR) NetcardMenu2", message, 50, 5, 5, 6, pMenuInhalt, &choise, ctr[TR_OK], ctr[TR_SELECT], ctr[TR_CANCEL], NULL);
sprintf(message, ctr[TR_CHOOSE_NETCARD], ucolourcard[colour]);
rc = newtWinMenu( ctr[TR_NETCARDMENU2], message, 50, 5, 5, 6, pMenuInhalt, &choise, ctr[TR_OK], ctr[TR_SELECT], ctr[TR_CANCEL], NULL);
if ( rc == 0 || rc == 1) {
write_configs_netudev(found_NIC_as_Card[choise], colour);
@@ -714,7 +714,7 @@ int nicmenu(int colour)
return 0;
} else {
// We have to add here that you can manually add a device
errorbox("(TR) Es wurden leider keine freien Netzwerkkarten fuer die Schnittstelle in ihrem System gefunden.");
errorbox( ctr[TR_ERROR_INTERFACES]);
return 1;
}
}
@@ -756,7 +756,7 @@ int ask_clear_card_entry(int card)
char message[STRING_SIZE];
int rc;
sprintf(message, "(TR) Soll die Zuordnung der Netzwerkkarte \"%s\" entfernt werden ?\n", ucolourcard[card]);
sprintf(message, ctr[TR_REMOVE_CARD] "%s \n", ucolourcard[card]);
rc = newtWinChoice(ctr[TR_WARNING], ctr[TR_OK], ctr[TR_CANCEL], message);
if ( rc = 0 || rc == 1) {

View File

@@ -147,7 +147,7 @@ int oktoleave(char *errormessage)
}
if (!(interfacecheck(kv, "GREEN")))
{
strcpy(errormessage, "(TR) GRÜNE IP nicht konfiguriert.\n"); //ctr[TR_MISSING_GREEN_IP]);
strcpy(errormessage, ctr[TR_MISSING_GREEN_IP]);
goto EXIT;
}
}
@@ -198,13 +198,13 @@ int oktoleave(char *errormessage)
strcpy(temp, ""); findkey(kv, "DNS1", temp);
if (!(strlen(temp)))
{
strcpy(errormessage, "(TR) Kein DNS eingetragen\n");
strcpy(errormessage, ctr[TR_MISSING_DNS]);
goto EXIT;
}
strcpy(temp, ""); findkey(kv, "DEFAULT_GATEWAY", temp);
if (!(strlen(temp)))
{
strcpy(errormessage, "(TR) Kein default Gateway eingetragen.\n");
strcpy(errormessage, ctr[TR_MISSING_DEFAULT]);
goto EXIT;
}
}
@@ -290,7 +290,7 @@ int configtypemenu(void)
rc = newtWinMenu(ctr[TR_NETWORK_CONFIGURATION_TYPE], message, 50, 5, 5,
6, configtypenames, &choise, ctr[TR_OK], ctr[TR_CANCEL], NULL);
if ( configtypecards[choise] > found ) {
sprintf(message, "(TR) Nicht genuegend Netzwerkkarten fuer diese Auswahl gefunden.\n\nBenoetigt: %d\nGefunden: %d\n", configtypecards[choise], found);
sprintf(message, ctr[TR_NOT_ENOUGH_INTERFACES] , configtypecards[choise], found);
errorbox(message);
}
}
@@ -435,7 +435,7 @@ int changedrivers(void)
do
{
count = 0;
strcpy(message, "(TR) Bitte wählen Sie das Interface aus das geaendert werden soll.\n\n");
strcpy(message, ctr[TR_INTERFACE_CHANGE]);
if (green) {
strcpy(MenuInhalt[count], "GREEN");
@@ -490,7 +490,7 @@ int changedrivers(void)
}
pMenuInhalt[count] = NULL;
rc = newtWinMenu("(TR) Netcard Farbe", message, 70, 5, 5, 6, pMenuInhalt, &choise, ctr[TR_SELECT], "(TR) Entfernen" , ctr[TR_DONE], NULL);
rc = newtWinMenu( ctr[TR_NETCARD_COLOR], message, 70, 5, 5, 6, pMenuInhalt, &choise, ctr[TR_SELECT], ctr[TR_REMOVE], ctr[TR_DONE], NULL);
if ( rc == 0 || rc == 1) {
if ((green) && ( choise == NicEntry[0])) nicmenu(_GREEN_CARD_);