Skip to content

Commit

Permalink
Add French translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyuchia committed Jul 2, 2016
1 parent 78f4d42 commit 4953a3e
Show file tree
Hide file tree
Showing 6 changed files with 142 additions and 6 deletions.
95 changes: 95 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# ----------------------------------------------------------------------
# UTF-8 encoding
# ----------------------------------------------------------------------

# Use UTF-8 encoding for anything served text/plain or text/html
AddDefaultCharset utf-8

# Force UTF-8 for a number of file formats
AddCharset utf-8 .atom .css .js .json .rss .vtt .xml

# ----------------------------------------------------------------------
# Some Security
# ----------------------------------------------------------------------

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
SetEnvIfNoCase User-Agent "^libwww-perl*" block_bad_bots
Deny from env=block_bad_bots

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>

<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

# Prevent Folder's browsing
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>

# Block access to "hidden" directories or files
<IfModule mod_rewrite.c>
RewriteCond %{SCRIPT_FILENAME} -d [OR]
RewriteCond %{SCRIPT_FILENAME} -f
RewriteRule "(^|/)\." - [F]
</IfModule>

# Block access to backup and source files.
<FilesMatch "(\.(bak|config|dist|fla|inc|ini|log|psd|sh|sql|swp)|~)$">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

# Increase cookie security
<IfModule mod_php5.c>
php_value session.cookie_httponly true
</IfModule>

# Prevent Iframe
Header set X-Frame-Options DENY

# Disable server signature
ServerSignature Off

# ----------------------------------------------------------------------
# Make the index handle all Request's
# ----------------------------------------------------------------------

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

# ----------------------------------------------------------------------
# Error Documents
# ----------------------------------------------------------------------
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 404 /error/404.html
ErrorDocument 403 /error/403.html
ErrorDocument 500 /error/500.html

# ----------------------------------------------------------------------
# Enable Gzip
# ----------------------------------------------------------------------
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ <h3 data-string="Language">Language</h3>
<select data-action="set-language">
<option value="English">English</option>
<option value="Español">Español</option>
<option value="Français">Français</option>
</select>
<span class="fa fa-unsorted" data-select="set-language"></span>
</div>
Expand Down
20 changes: 18 additions & 2 deletions js/monogatari.js
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,14 @@ $_ready(function(){
}
var image = characters[parts[1]]["Images"][parts[2]].split(" ")[0];
$_("[data-character='" + parts[1] + "']").remove();

if(parts[3] == "at"){
parts[3] == parts[4];
if(parts[5] != null && parts[6] != null){
parts[5] = parts[6];
}
}

if(parts[3] == null){
parts[3] = "center";
}
Expand All @@ -999,6 +1007,13 @@ $_ready(function(){
engine["CharacterHistory"].push("<img src='img/characters/" + directory + "/" + image + "' class='animated " + parts[5] + " " + parts[3] + "' data-character='" + parts[1] + "'>");

}else if(images[parts[1]] != null){
// Parts[2] is position and Parts[4] is animation
if(parts[2] == "at"){
parts[2] == parts[3];
if(parts[4] != null && parts[5] != null){
parts[4] = parts[5];
}
}

if(parts[2] == null){
parts[2] = "center";
Expand All @@ -1009,8 +1024,9 @@ $_ready(function(){
parts[4] = parts[3];
}

$_("#game").append("<img src='img/" + images[parts[1]] + "' class='animated " + parts[4] + " " + parts[2] + "' data-image='" + parts[1] + "'>");
engine["ImageHistory"].push("<img src='img/" + images[parts[1]] + "' class='animated " + parts[4] + " " + parts[2] + "' data-image='" + parts[1] + "'>");
var imageObject = "<img src='img/" + images[parts[1]] + "' class='animated " + parts[4] + " " + parts[2] + "' data-image='" + parts[1] + "'>";
$_("#game").append(imageObject);
engine["ImageHistory"].push(imageObject);

}else{
if(parts[2] == null){
Expand Down
2 changes: 1 addition & 1 deletion js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var engine = {
// Initial Settings
var settings = {

// Initial Language for Multilanguage Games.
// Initial Language for Multilanguage Games or for the Default GUI Language.
"Language": "English",

// Initial Volumes from 0.0 to 1.
Expand Down
28 changes: 25 additions & 3 deletions js/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
var strings = {

"English":{

"Back": "Back",
"Start": "Start",
"Load": "Load",
Expand All @@ -30,11 +29,9 @@ var strings = {
"Confirm": "Do you want to quit?",
"LoadSlots": "Saved Games",
"LoadAutoSaveSlots": "Auto Saved Games"

},

"Español":{

"Back": "Atrás",
"Start": "Comenzar",
"Load": "Cargar",
Expand All @@ -57,5 +54,30 @@ var strings = {
"Confirm": "¿Deseas salir?",
"LoadSlots": "Juegos Guardados",
"LoadAutoSaveSlots": "Juegos Guardados Automaticamente"
},

"Français":{
"Back": "Retourner",
"Start": "Démarrer",
"Load": "Charger",
"Save": "Sauvegarder",
"Close": "Fermer",
"Language": "Langue",
"Settings": "Préférences",
"Voice": "Volume de la Voix",
"Music": "Volume de la Musique",
"Sound": "Volume des Sons",
"Help": "Aide",
"AdvanceHelp": "Pour avancer dans le jeu, appuyez sur la touche espace ou cliquez sur.",
"QuickButtons": "Boutons du Menu Rapide",
"BackButton": "Retourner.",
"HideButton": "Cacher le Texte.",
"SaveButon": "Ouvrir l'écran de Sauvegarde.",
"LoadButton": "Ouvrir l'écran de Chargement.",
"SettingsButton": "Ouvrir l'écran des Préférences.",
"QuitButton": "Quitter le Jeu.",
"Confirm": "Voulez-vous vraiment quitter?",
"LoadSlots": "Jeux Sauvegardés",
"LoadAutoSaveSlots": "Jeux Sauvegardés Automatiquement"
}
}
2 changes: 2 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow:

0 comments on commit 4953a3e

Please sign in to comment.