fixed some bugs of mod archival + first batch of localizations

pull/32/head
Miepee 5 years ago
parent 52dccdb73e
commit 611614e694

@ -75,9 +75,9 @@ namespace AM2RLauncher.Language {
}
}
public static string ArchiveNotes {
public static string ArchiveNotesCommunityUpdates {
get {
return ResourceManager.GetString("ArchiveNotes", resourceCulture);
return ResourceManager.GetString("ArchiveNotesCommunityUpdates", resourceCulture);
}
}
@ -572,5 +572,11 @@ namespace AM2RLauncher.Language {
return ResourceManager.GetString("ArchiveMod", resourceCulture);
}
}
public static string ArchiveNotesMods {
get {
return ResourceManager.GetString("ArchiveNotesMods", resourceCulture);
}
}
}
}

@ -132,7 +132,7 @@
<data name="ApkButtonEnabledToolTip" xml:space="preserve">
<value>APK erstellen für $NAME</value>
</data>
<data name="ArchiveNotes" xml:space="preserve">
<data name="ArchiveNotesCommunityUpdates" xml:space="preserve">
<value>Dies ist ein Archiv eines vorher installierten Community-Updates. Es kann nicht erneut installiert werden und wird automatisch entfernt wenn die archivierten Spieldaten gelöscht werden. Die Speicherstände sind allerdings weiterhin die aktuellen, bitte sicherheitshalber ein Backup anlegen vor dem benutzen dieses Profils!</value>
</data>
<data name="Author" xml:space="preserve">
@ -380,4 +380,10 @@ Bitte äußerste Vorsicht walten lassen.</value>
<data name="ZipIsNotAM2R11" xml:space="preserve">
<value>Das ausgewählte Zip-Archiv ist nicht AM2R 1.1 oder falsch geformt! Bitte ein anderes Archiv auswählen.</value>
</data>
<data name="ArchiveMod" xml:space="preserve">
<value>$NAME archivieren?</value>
</data>
<data name="ArchiveNotesMods" xml:space="preserve">
<value>Dies ist ein Archiv einer vorher installierten Mod. Es kann nicht erneut installiert werden und wird automatisch entfernt wenn die archivierten Spieldaten gelöscht werden.</value>
</data>
</root>

@ -132,7 +132,7 @@
<data name="ApkButtonEnabledToolTip" xml:space="preserve">
<value>Crear un APK para $NAME</value>
</data>
<data name="ArchiveNotes" xml:space="preserve">
<data name="ArchiveNotesCommunityUpdates" xml:space="preserve">
<value>Esto es una copia de la Actualización de la Comunidad instalada previamente. No puede ser reinstalada y se eliminará automáticamente si se borran sus archivos de juego. Comparte las partidas guardadas con la Actualización de la Comunidad instalada actualmente, ¡así que asegúrate de crear una copia de seguridad de tus partidas antes de ejecutar este perfil!</value>
</data>
<data name="Author" xml:space="preserve">
@ -380,4 +380,10 @@ Procede con cautela.</value>
<data name="ZipIsNotAM2R11" xml:space="preserve">
<value>¡El Zip seleccionado no es AM2R_1.1! Por favor elige otro archivo Zip.</value>
</data>
<data name="ArchiveMod" xml:space="preserve">
<value>¿Deseas archivar $NAME?</value>
</data>
<data name="ArchiveNotesMods" xml:space="preserve">
<value>Esta es una versión archivada de un Mod instalado anteriormente. No puede ser reinstalada y se eliminará automáticamente si se borran sus archivos de juego.</value>
</data>
</root>

@ -132,7 +132,7 @@
<data name="ApkButtonEnabledToolTip" xml:space="preserve">
<value>Créer un APK pour $NAME</value>
</data>
<data name="ArchiveNotes" xml:space="preserve">
<data name="ArchiveNotesCommunityUpdates" xml:space="preserve">
<value>Il s'agit d'une archive d'une mise à jour communautaire précédemment installée. Elle ne peut pas être réinstallée et se supprimera d'elle-même si ses fichiers de jeu sont supprimés. Elle partage des sauvegardes avec la mise à jour actuellement installée,
donc assurez-vous de faire une sauvegarde de celles-ci avant de lancer
ce profil !</value>
@ -382,4 +382,10 @@ Soyez prudent.</value>
<data name="ZipIsNotAM2R11" xml:space="preserve">
<value>Le Zip sélectionné n'est pas AM2R 1.1 ! Veuillez choisir un autre fichier Zip.</value>
</data>
<data name="ArchiveMod" xml:space="preserve">
<value>Archive $NAME ?</value>
</data>
<data name="ArchiveNotesMods" xml:space="preserve">
<value>Il s'agit d'une archive d'un mod précédemment installé. Il ne peut pas être réinstallé et se supprimera de lui-même si ses fichiers de jeu sont supprimés.</value>
</data>
</root>

@ -132,7 +132,7 @@
<data name="ApkButtonEnabledToolTip" xml:space="preserve">
<value>Crea un APK per $NAME</value>
</data>
<data name="ArchiveNotes" xml:space="preserve">
<data name="ArchiveNotesCommunityUpdates" xml:space="preserve">
<value>Questo è un archivio di un Aggiornamento Comunità installato in precedenza. Non può essere reinstallato e si rimuoverà da solo se i file di gioco saranno cancellati. Condivide i salvataggi con gli Aggiornamenti Comunità, quindi assicurati di creare un backup dei tuoi salvataggi prima di usare questo profilo!</value>
</data>
<data name="Author" xml:space="preserve">
@ -380,4 +380,10 @@ Procedi con cautela.</value>
<data name="ZipIsNotAM2R11" xml:space="preserve">
<value>Il Zip selezionato non è AM2R 1.1! Perfavore scegli un altro file Zip.</value>
</data>
<data name="ArchiveMod" xml:space="preserve">
<value>Vuoi archiviare $NAME?</value>
</data>
<data name="ArchiveNotesMods" xml:space="preserve">
<value>Questo è un archivio di una Mod precedentemente installata. Non può essere re-installata e si rimuoverà da sola se i suoi file di gioco vengono rimossi.</value>
</data>
</root>

@ -132,7 +132,7 @@
<data name="ApkButtonEnabledToolTip" xml:space="preserve">
<value>次のAPKを作成します: $NAME</value>
</data>
<data name="ArchiveNotes" xml:space="preserve">
<data name="ArchiveNotesCommunityUpdates" xml:space="preserve">
<value>これは以前インストールされたCommunity Updateのアーカイブです。再インストールはできませんし、ゲームファイルが削除されると自動的に削除されます。現在インストールされているCommunity Updateとセーブデータを共有しているため、このプロファイルを実行する前に必ずセーブデータのバックアップを作成してください</value>
</data>
<data name="Author" xml:space="preserve">

@ -132,7 +132,7 @@
<data name="ApkButtonEnabledToolTip" xml:space="preserve">
<value>Criar um APK para $NAME</value>
</data>
<data name="ArchiveNotes" xml:space="preserve">
<data name="ArchiveNotesCommunityUpdates" xml:space="preserve">
<value>Isto é um arquivo de uma Atualização da Comunidade instalada previamente. Não é possível reinstalá-la e ela será removida automaticamente quando seus arquivos de jogo forem deletados. Os arquivos de save são compartilhados com a Atualização da Comunidade que está instalada no momento, então faça um backup de seus saves antes de executar este perfil!</value>
</data>
<data name="Author" xml:space="preserve">
@ -380,4 +380,10 @@ Prossiga com cuidado.</value>
<data name="ZipIsNotAM2R11" xml:space="preserve">
<value>O arquivo Zip selecionado não contém o AM2R 1.1! Por favor, selecione outro arquivo Zip</value>
</data>
<data name="ArchiveMod" xml:space="preserve">
<value>Deseja arquivar $NAME?</value>
</data>
<data name="ArchiveNotesMods" xml:space="preserve">
<value>Isso é uma versão arquivada de um Mod previamente instalado. Ele não pode ser reinstalado e será removido se seus arquivos de jogo forem deletados.</value>
</data>
</root>

@ -132,7 +132,7 @@
<data name="ApkButtonEnabledToolTip" xml:space="preserve">
<value>Create an APK for $NAME</value>
</data>
<data name="ArchiveNotes" xml:space="preserve">
<data name="ArchiveNotesCommunityUpdates" xml:space="preserve">
<value>This is an archive of a previously installed Community Update. It cannot be re-installed and will remove itself if its game files are deleted. It shares saves with the currently installed Community Updates, so be sure to create a backup of your saves before running this profile!</value>
</data>
<data name="Author" xml:space="preserve">
@ -385,4 +385,7 @@ Proceed with caution.</value>
<data name="ArchiveMod" xml:space="preserve">
<value>Do you want to archive $NAME?</value>
</data>
<data name="ArchiveNotesMods" xml:space="preserve">
<value>This is an archive of a previously installed Mod. It cannot be re-installed and will remove itself if its game files are deleted.</value>
</data>
</root>

@ -132,7 +132,7 @@
<data name="ApkButtonEnabledToolTip" xml:space="preserve">
<value>Создать APK-файл для $NAME</value>
</data>
<data name="ArchiveNotes" xml:space="preserve">
<data name="ArchiveNotesCommunityUpdates" xml:space="preserve">
<value>Этот архив содержит ранее установленное обновление сообщества. Оно не может быть переустановлено и автоматически удалится при удалении файлов игры. Оно имеет общие файлы сохранения с текущим обновлением сообщества, поэтому не забудьте создать копию сохранений перед запуском!</value>
</data>
<data name="Author" xml:space="preserve">
@ -380,4 +380,10 @@
<data name="ZipIsNotAM2R11" xml:space="preserve">
<value>Указанный zip-файл не является файлом AM2R 1.1! Пожалуйста, выберите другой zip-файл.</value>
</data>
<data name="ArchiveMod" xml:space="preserve">
<value>Архивировать $NAME?</value>
</data>
<data name="ArchiveNotesMods" xml:space="preserve">
<value>Это архив, содержащий ранее установленный мод. Он не может быть переустановлен, и, при удалении файлов игры, так же будет удалён.</value>
</data>
</root>

@ -132,7 +132,7 @@
<data name="ApkButtonEnabledToolTip" xml:space="preserve">
<value>为 $NAME 创建 APK</value>
</data>
<data name="ArchiveNotes" xml:space="preserve">
<data name="ArchiveNotesCommunityUpdates" xml:space="preserve">
<value>这是先前安装过的社区更新版本的压缩文件,因此无法再重新安装一遍,并且在游戏文件被删除后也会自行删除。由于与当前安装的社区更新版本共用保存数据,所以请在运行该游戏实例前备份好保存数据!</value>
</data>
<data name="Author" xml:space="preserve">

@ -998,14 +998,10 @@ namespace AM2RLauncher
// User wants to archive profile
if (archiveResult == DialogResult.Yes)
{
ArchiveProfileAndAdjustLists(currentProfile);
DeleteProfileAndAdjustLists(currentProfile);
}
}
// No archiving, Delete profile instead
else
DeleteProfileAndAdjustLists(currentProfile);
// Now we delete the profile
DeleteProfileAndAdjustLists(currentProfile);
// Rename directory to take the old one's place
string originalFolder = modsDir + "/" + extractedName.Replace("_new", "");

@ -175,7 +175,7 @@ namespace AM2RLauncher
// Only enable these, when we're not on the community updates
if (settingsProfileDropDown.SelectedIndex > 0)
{
updateModButton.Enabled = enabled;
updateModButton.Enabled = profileList[settingsProfileDropDown.SelectedIndex].Installable;
updateModButton.ToolTip = Language.Text.UpdateModButtonToolTip.Replace("$NAME", settingsProfileDropDown.Items[settingsProfileDropDown.SelectedIndex].Text);
deleteModButton.Enabled = enabled;
deleteModButton.ToolTip = Language.Text.DeleteModButtonToolTip.Replace("$NAME", settingsProfileDropDown.Items[settingsProfileDropDown.SelectedIndex].Text);
@ -285,8 +285,13 @@ namespace AM2RLauncher
{
// Archive version notes
if (!profile.Installable)
//TODO: have different text for non-community archive
profile.ProfileNotes = Language.Text.ArchiveNotes + "\n\n" + profile.ProfileNotes;
{
//TODO: localizations
if (profile.Name.Contains("Community Updates"))
profile.ProfileNotes = Language.Text.ArchiveNotesCommunityUpdates;
else
profile.ProfileNotes = Language.Text.ArchiveNotesMods + "\n\n" + profile.ProfileNotes;
}
profileDropDown.Items.Add(profile.Name);
}

Loading…
Cancel
Save