From 46e15eb4740d2cf1ffb65e264f47a2ca13e00e53 Mon Sep 17 00:00:00 2001 From: "oskar.wiksten" Date: Sun, 30 Oct 2011 11:56:46 +0000 Subject: [PATCH] Bumped version to v0.6.11dev. Added initial implementation of translation validator. git-svn-id: https://andors-trail.googlecode.com/svn/trunk@193 08aca716-68be-ccc6-4d58-36f5abd142ac --- AndorsTrail/.classpath | 2 +- AndorsTrail/AndroidManifest.xml | 2 +- AndorsTrail/project.properties | 11 + .../AndorsTrail/AndorsTrailApplication.java | 2 +- AndorsTrailEdit/AndorsTrailTranslations.js | 255 ++++++++++++++++++ AndorsTrailEdit/editor.html | 2 +- AndorsTrailEdit/styles2.css | 14 + AndorsTrailEdit/translations.html | 91 +++++++ 8 files changed, 375 insertions(+), 4 deletions(-) create mode 100644 AndorsTrail/project.properties create mode 100644 AndorsTrailEdit/AndorsTrailTranslations.js create mode 100644 AndorsTrailEdit/translations.html diff --git a/AndorsTrail/.classpath b/AndorsTrail/.classpath index 609aa00..6c635c0 100644 --- a/AndorsTrail/.classpath +++ b/AndorsTrail/.classpath @@ -3,5 +3,5 @@ - + diff --git a/AndorsTrail/AndroidManifest.xml b/AndorsTrail/AndroidManifest.xml index 84a26f9..c317452 100644 --- a/AndorsTrail/AndroidManifest.xml +++ b/AndorsTrail/AndroidManifest.xml @@ -4,7 +4,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" package="com.gpl.rpg.AndorsTrail" android:versionCode="25" - android:versionName="0.6.10" + android:versionName="0.6.11dev" android:installLocation="auto" > '); +} + +IncludeJavascript("FieldList.js"); +IncludeJavascript("DataStore.js"); + +var translateFiles = [ + 'strings.xml', + 'content_actorconditions.xml', + 'content_conversationlist.xml', + 'content_droplist.xml', + 'content_itemlist.xml', + 'content_monsterlist.xml', + 'content_questlist.xml' +]; +var translations = [ + { name: 'French', id: 'values-fr', files: [ + 'content_actorconditions.xml', + 'content_conversationlist.xml', + 'content_itemlist.xml', + 'content_questlist.xml', + 'strings.xml' + ]}, + { name: 'Italian', id: 'values-it', files: [ + 'content_actorconditions.xml', + 'content_conversationlist.xml', + 'content_itemlist.xml', + 'content_questlist.xml', + 'strings.xml' + ]}, + { name: 'German', id: 'values-de', files: [ + 'content_actorconditions.xml', + 'content_itemlist.xml', + 'strings.xml' + ]}, + { name: 'Hebrew', id: 'values-iw', files: [ + 'strings.xml' + ]}, + { name: 'Russian', id: 'values-ru', files: [ + 'content_conversationlist.xml', + 'content_itemlist.xml', + 'content_questlist.xml', + 'strings.xml' + ]} +]; + +function stepRight(divToHide, divToShow, onComplete) { + $(divToHide).hide('slow'); + $(divToShow).fadeIn('slow', onComplete); +} +function stepLeft(divToHide, divToShow) { + $(divToHide).fadeOut('slow'); + $(divToShow).show('slow'); +} + +function loadResourceFile(filename, onSuccess) { + var url = document.location.href; + url = url.substring(0, url.lastIndexOf('/')); + url = url.substring(0, url.lastIndexOf('/')); + url += "/AndorsTrail/res/" + filename; + //var url = "http://andors-trail.googlecode.com/svn/trunk/AndorsTrail/res/" + filename; + $.get(url, function(data) { + onSuccess(data); + }, 'text'); +} + +function addSelectOption(sel, val, text) { + if (!text) { text = val; } + sel.append($("