Commit c9e66e5c authored by Benoit Lavenier's avatar Benoit Lavenier

add en i18n

parent ea4733f3
......@@ -18,7 +18,7 @@
<allow-navigation href="http://*/*" />
<allow-navigation href="https://*/*" />
<allow-navigation href="data:*" />
<icon src="resources/android/icon/drawable-xhdpi-icon.png" />
<icon src="www/img/logo.png" />
<preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
......@@ -47,6 +47,18 @@
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
</platform>
<engine name="android" spec="^6.2.3" />
<plugin name="cordova-plugin-camera" spec="^2.4.1" />
......
#!/usr/bin/env node
"use strict";
var gulp = require('gulp');
var gutil = require('gulp-util');
var path = require("path");
var es = require('event-stream');
var cmd = process.env.CORDOVA_CMDLINE;
var rootdir = process.argv[2];
var argv = require('yargs').argv;
var ngTranslate = require('gulp-angular-translate');
if (rootdir) {
......
#!/usr/bin/env node
"use strict";
var gulp = require('gulp');
var gutil = require('gulp-util');
var path = require("path");
var es = require('event-stream');
var useref = require('gulp-useref');
......@@ -13,7 +12,6 @@ var revReplace = require('gulp-rev-replace');
var cmd = process.env.CORDOVA_CMDLINE;
var rootdir = process.argv[2];
var argv = require('yargs').argv;
var skip = true;
if (cmd.indexOf("--release") > -1 || cmd.indexOf("--useref") > -1) {
......
......@@ -44,6 +44,9 @@ if (rootdir && !skip) {
path.join(wwwPath, 'js'),
path.join(wwwPath, 'cordova-js-src'),
path.join(wwwPath, 'plugins', 'es'),
path.join(wwwPath, 'plugins', 'graph'),
path.join(wwwPath, 'plugins', 'map'),
path.join(wwwPath, 'plugins', 'market'),
path.join(wwwPath, 'lib', '**'),
// Keep Ionic lib/ionic/fonts directory
'!'+path.join(wwwPath, 'lib'),
......
......@@ -25,7 +25,7 @@ if (rootdir) {
gulp.src(ionicConfigFile)
// change App ID into 'duniter-cesium'
.pipe(replace(/id="fr.gchange"/g, 'id="cesium"'))
.pipe(replace(/id="fr.gchange"/g, 'id="gchange"'))
.pipe(gulp.dest(platformPath));
......
......@@ -12,7 +12,7 @@ var foldersToProcess = [
'js/services',
'plugins/es/js',
'plugins/es/js/controllers',
//'plugins/es/js/entities',
'plugins/es/js/entities',
'plugins/es/js/services'
];
......
{
"name": "gchange-client",
"app_id": "23c2212f",
"app_id": "",
"watchPatterns": [
"www/**/*",
"!www/dist/**/*",
......@@ -18,5 +18,12 @@
"css_plugin",
"watch"
],
"defaultBrowser": "chrome"
"defaultBrowser": "chrome",
"browsers": [
{
"platform": "android",
"browser": "crosswalk",
"version": "12.41.296.5"
}
]
}
\ No newline at end of file
......@@ -8,17 +8,16 @@
},
"scripts": {
"postinstall": "bower install",
"install-for-mobile": "ionic state restore",
"install-platforms": "ionic state restore",
"start": "ionic serve"
},
"keywords": [
"duniter",
"cesium",
"gchange",
"ionic",
"angular",
"cordova",
"crypto-currency"
"market-place"
],
"author": "Gchange team",
"license": "GPL-3.0",
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -7,17 +7,16 @@
<title>ğchange</title>
<link rel="icon" href="./img/favicon.ico">
<link rel="apple-touch-icon" href="./img/logo_128px.png">
<!--link rel="apple-touch-icon" sizes="180x180" href="./img/logo_180px.png">
<link rel="apple-touch-icon" sizes="180x180" href="./img/logo_180px.png">
<link rel="apple-touch-icon" sizes="152x152" href="./img/logo_152px.png">
<link rel="apple-touch-icon" sizes="167x167" href="./img/logo_167px.png">-->
<link rel="apple-touch-icon" sizes="167x167" href="./img/logo_167px.png">
<link rel="manifest" href="/manifest.json">
<!-- build:css dist_css/cesium.css -->
<link href="css/ionic.app.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/angular-image-crop.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/ionic.app.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/angular-image-crop.css">
<!--removeIf(device)-->
<link href="css/style-no-device.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style-no-device.css">
<!--endRemoveIf(device)-->
<!--removeIf(no-plugin)-->
......@@ -40,13 +39,13 @@
<!-- vendor js -->
<script src="js/vendor/moment.min.js"></script>
<script src="js/vendor/moment.fr.js"></script>
<!--<script src="js/vendor/moment.nl.js"></script>
<script src="js/vendor/moment.es.js"></script>-->
<script src="js/vendor/moment.nl.js"></script>
<script src="js/vendor/moment.es.js"></script>
<script src="js/vendor/numeral.js"></script>
<script src="js/vendor/numeral.fr.js"></script>
<!--<script src="js/vendor/numeral.en.js"></script>
<script src="js/vendor/numeral.en.js"></script>
<script src="js/vendor/numeral.nl.js"></script>
<script src="js/vendor/numeral.es.js"></script>-->
<script src="js/vendor/numeral.es.js"></script>
<script src="js/vendor/socket-io.js"></script>
<script src="js/vendor/underscore.js"></script>
<!--<script src="js/vendor/qrcode.min.js"></script>-->
......@@ -68,8 +67,6 @@
<script src="lib/ionic/js/angular/ui-leaflet.js"></script>
<script src="js/vendor/base58.js" async></script>
<!--removeIf(no-device)-->
<script src="js/vendor/sha256.min.js" async></script>
<script src="js/vendor/ng-cordova.min.js"></script>
<!--endRemoveIf(no-device)-->
......@@ -109,24 +106,24 @@
<script src="dist/dist_js/app/services/device-services.js"></script>
<script src="dist/dist_js/app/services/currency-services.js"></script>
<script src="dist/dist_js/app/services/bma-services.js"></script>
<script src="dist/dist_js/app/services/wallet-services.js"></script>
<script src="dist/dist_js/app/services/tx-services.js"></script>
<script src="dist/dist_js/app/services/wot-services.js"></script>
<script src="dist/dist_js/app/services/tx-services.js"></script>
<script src="dist/dist_js/app/services/wallet-services.js"></script>
<script src="dist/dist_js/app/services/plugin-services.js"></script>
<script src="dist/dist_js/app/services.js"></script>
<!-- entities -->
<!--<script src="dist/dist_js/app/entities/peer.js"></script>
<script src="dist/dist_js/app/entities/block.js"></script>-->
<script src="dist/dist_js/app/entities/peer.js"></script>
<script src="dist/dist_js/app/entities/block.js"></script>
<!-- controllers -->
<script src="dist/dist_js/app/controllers/app-controllers.js"></script>
<script src="dist/dist_js/app/controllers/join-controllers.js"></script>
<script src="dist/dist_js/app/controllers/login-controllers.js"></script>
<script src="dist/dist_js/app/controllers/help-controllers.js"></script>
<script src="dist/dist_js/app/controllers/settings-controllers.js"></script>
<script src="dist/dist_js/app/controllers/wallet-controllers.js"></script>
<script src="dist/dist_js/app/controllers/wot-controllers.js"></script>
<script src="dist/dist_js/app/controllers/settings-controllers.js"></script>
<script src="dist/dist_js/app/controllers.js"></script>
<!-- templates -->
......@@ -196,6 +193,7 @@
<script src="dist/dist_js/app/filters.js"></script>
<script src="dist/dist_js/app/platform.js"></script>
<!-- endbuild -->
<!-- build:js config.js -->
<!-- config -->
<script src="dist/dist_js/app/config.js"></script>
......
......@@ -6,6 +6,8 @@ angular.module('cesium.settings.services', ['ngResource', 'ngApi', 'cesium.confi
// Define app locales
var locales = [
{id:'en', label:'English'},
{id:'en-GB', label:'English (UK)'},
{id:'fr-FR', label:'Français'}
];
var fallbackLocale = csConfig.fallbackLanguage ? fixLocale(csConfig.fallbackLanguage) : 'en';
......
window.addEventListener('message', function(event) {
console.log('[HTTPS frame] ', event);
alert('Received ' + event);
});
alert('get ready !');
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -21,7 +21,6 @@
}
},
"MENU": {
"MARKET": "Annonces",
"REGISTRY": "Professionnels",
"USER_PROFILE": "Mon profil",
"MESSAGES": "Messages",
......
This diff is collapsed.
{
"MENU": {
"MARKET": "Ads",
"MY_RECORDS": "My ads"
},
"MARKET": {
"COMMON": {
"PRICE": "Price",
"BTN_NEW_AD": "New ad",
"SOLD": "Close ad"
},
"JOIN": {
"PROFILE": {
"WARNING": "You now have to complete your user profile.<br/><br/>This is <b>public information</b>, accessible to everyone.",
"TITLE": "Lastname, Firstname",
"TITLE_HELP": "Lastname, Firstname or pseudonym",
"DESCRIPTION": "Abut me",
"DESCRIPTION_HELP": "Say something about you..."
},
"LAST_SLIDE_CONGRATULATION": "You have entered all necessary information: Congratulations!<br/>You can now <b>send the creation request </b>.<br/><br/>For information, the public key below will identify your future account:",
"CONFIRMATION_WALLET_ACCOUNT": "<b class=\"assertive\">Warning:</b> The secret identifier and the password can not be changed.<br/><br/>You should <b>always remember it!</b><br/><br/><b>Are you sure</b> you want to continue with these credentials?"
},
"PROFILE": {
"DEFAULT_TITLE": "User {{pubkey|formatPubkey}}"
},
"SIMPLE_LOGIN": {
"TITLE": "Contact information",
"HELP": "Please indicate a <b>email or phone number</b>, so that we can contact you during the event:",
"EMAIL_OR_PHONE": "Email or phone number",
"EMAIL_OR_PHONE_HELP": "Email or phone number",
"REMEMBER_ME": "Remember me?",
"ERROR": {
"INVALID_USERNAME": "Email or phone number invalid"
}
},
"HOME": {
"BTN_NEW_AD": "Place an ad",
"BTN_SHOW_MARKET_OFFER": "Explore Ads"
},
"CATEGORY": {
"ALL": "All categories"
},
"SEARCH": {
"TITLE": "Market",
"CATEGORY": "Category: ",
"SEARCH_HELP": "What, Where: car, Columbia city, ...",
"BTN_ADD": "New",
"BTN_OPTIONS": "Advanced search",
"BTN_AROUND_ME": "Around me",
"SHOW_MORE": "Show more",
"SHOW_MORE_COUNT": "(current limit to {{limit}})",
"LOCATION": "Location",
"LOCATION_HELP": "City",
"LAST_RECORDS": "Last records:",
"RESULTS": "Results:",
"BTN_LAST_RECORDS": "Last ads",
"BTN_SHOW_CATEGORIES": "Show categories",
"BTN_OFFERS": "Offers",
"BTN_NEEDS": "Needs",
"SHOW_CLOSED_RECORD": "Display closed ads?"
},
"GALLERY": {
"TITLE": "Slideshow",
"BTN_START": "Start",
"BTN_CONTINUE": "Resume",
"BTN_PAUSE": "Pause",
"BTN_STOP": "Stop",
"SLIDE_DURATION": "Display time:",
"SLIDE_DURATION_OPTION": "{{value}} seconds"
},
"VIEW": {
"TITLE": "Ad",
"BTN_SOLD_AD": "Close the ad",
"BTN_SOLD": "Close",
"BTN_REOPEN": "Reopen the ad",
"BTN_WRITE_OFFER": "Write to the seller",
"BTN_WRITE_NEED": "Write to the applicant",
"MENU_TITLE": "Options",
"RECORD_FEES_PARENTHESIS": "(fees)",
"RECORD_STOCK": "Available stock:",
"POPOVER_SHARE_TITLE": "Ad {{title}}",
"REMOVE_CONFIRMATION": "Are you sure you want to delete this ad?<br/><br/> This is irreversible.",
"SOLD_CONFIRMATION" : "<b>Are you sure</b> you want to close this ad?",
"REOPEN_CONFIRMATION" : "<b>Are you sure</b> you want to repoen this ad?",
"NEW_MESSAGE_TITLE": "About your ad \"{{title}}\"..."
},
"TYPE": {
"TITLE": "New ad",
"SELECT_TYPE": "Kind of ad:",
"OFFER": "Offer",
"NEED": "Need"
},
"LOCAL_SALE": {
"LOCATION": "Stand number",
"LOCATION_HELP": "Stand number: 1, 2, ...",
"LOCATION_PREFIX": "Stand #"
},
"EDIT": {
"TITLE": "Edit",
"TITLE_NEW": "New ad",
"RECORD_TITLE": "Title",
"RECORD_TITLE_HELP": "Title",
"RECORD_DESCRIPTION": "Description",
"RECORD_DESCRIPTION_HELP": "Description",
"RECORD_LOCATION": "Address",
"RECORD_LOCATION_HELP": "City, Country",
"RECORD_PRICE": "Price",
"RECORD_PRICE_HELP": "Price (optional)",
"RECORD_CURRENCY": "Currency",
"RECORD_FEES": "Fees",
"RECORD_FEES_HELP": "Fees (optional)",
"RECORD_STOCK": "Available stock",
"RECORD_STOCK_HELP": "Available stock"
},
"WOT": {
"VIEW": {
"BTN_RECORDS": "Ads"
}
},
"ERROR": {
"FAILED_SAVE_RECORD": "Saving ad failed",
"FAILED_UPDATE_RECORD": "Updating Ad failed",
"LOAD_CATEGORY_FAILED": "Loading categories failed",
"LOOKUP_RECORDS_FAILED": "Error while loading records.",
"LOAD_RECORD_FAILED": "Loading ad failed",
"REMOVE_RECORD_FAILED": "Deleting ad failed",
"SOLD_RECORD_FAILED": "Error while closing the ad",
"REOPEN_RECORD_FAILED": "Error while reopening the ad",
"FAILED_SAVE_COMMENT": "Saving comment failed",
"FAILED_REMOVE_COMMENT": "Deleting comment failed",
"RECORD_NOT_EXISTS": "Ad not found"
},
"INFO": {
"RECORD_REMOVED": "Ad successfully deleted",
"RECORD_SOLD" : "Ad closed",
"RECORD_REOPEN" : "Ad reopen"
}
},
"EVENT": {
"MARKET": {
"NEW_COMMENT": "<span ng-class=\"{'gray': !notification.uid, 'positive':notification.uid }\"><i class=\"icon\" ng-class=\"{'ion-person': notification.uid, 'ion-key': !notification.uid}\"></i>&thinsp;{{name||uid||params[1]}}</span> has commented on your ad: <b>{{params[2]}}</b>",
"UPDATE_COMMENT": "<span ng-class=\"{'gray': !notification.uid, 'positive':notification.uid }\"><i class=\"icon\" ng-class=\"{'ion-person': notification.uid, 'ion-key': !notification.uid}\"></i>&thinsp;{{name||uid||params[1]}}</span> has modified his/her comment on your ad: <b>{{params[2]}}</b>",
"NEW_REPLY_COMMENT": "<span ng-class=\"{'gray': !notification.uid, 'positive':notification.uid }\"><i class=\"icon\" ng-class=\"{'ion-person': notification.uid, 'ion-key': !notification.uid}\"></i>&thinsp;{{name||uid||params[1]}}</span> has replied to your comment on the ad: <b>{{params[2]}}</b>",
"UPDATE_REPLY_COMMENT": "<span ng-class=\"{'gray': !notification.uid, 'positive':notification.uid }\"><i class=\"icon\" ng-class=\"{'ion-person': notification.uid, 'ion-key': !notification.uid}\"></i>&thinsp;{{name||uid||params[1]}}</span> has modified his/her answer to your comment on the ad: <b>{{params[2]}}</b>"
}
}
}
\ No newline at end of file
......@@ -34,11 +34,11 @@
}
},
"HOME": {
"BTN_NEW_AD": "Déposer une annonce",
"BTN_SHOW_MARKET_OFFER": "Voir les annonces"
"BTN_NEW_AD": "Place an ad",
"BTN_SHOW_MARKET_OFFER": "Explore Ads"
},
"CATEGORY": {
"ALL": "Toutes les catégories"
"ALL": "All categories"
},
"SEARCH": {
"TITLE": "Market",
......
......@@ -144,4 +144,4 @@
"UPDATE_REPLY_COMMENT": "<span ng-class=\"{'gray': !notification.uid, 'positive':notification.uid }\"><i class=\"icon\" ng-class=\"{'ion-person': notification.uid, 'ion-key': !notification.uid}\"></i>&thinsp;{{name||uid||params[1]}}</span> a modifié la réponse à votre commentaire, sur l'annonce : <b>{{params[2]}}</b>"
}
}
}
}
\ No newline at end of file
......@@ -135,14 +135,12 @@ angular.module('cesium.market.join.controllers', ['cesium.services', 'cesium.mar
return mkModals.showHelp({anchor: helpAnchor});
};
// TODO: remove auto add account when done
/*// TODO: remove auto add account when done
$timeout(function() {
$scope.formData.username="azertypoi";
$scope.formData.confirmUsername=$scope.formData.username;
$scope.formData.password="azertypoi";
$scope.formData.confirmPassword=$scope.formData.password;
$scope.formData.pseudo="azertypoi";
$scope.doNext();
$scope.doNext();
}, 400);
}, 400);*/
});
\ No newline at end of file
......@@ -11,14 +11,14 @@
<span translate>MENU.MARKET</span>
</ion-item>
<!-- view market gallery -->
<!-- view market gallery
<ion-item menu-close class="item item-icon-left hidden-xs hidden-sm"
active-link="active"
active-link-path-prefix="#/app/gallery/market"
ui-sref="app.market_gallery">
<i class="icon ion-images"></i>
<span translate>MARKET.GALLERY.TITLE</span>
</ion-item>
</ion-item>-->
</ng-if>
......
......@@ -22,12 +22,12 @@
</div>
</div>
<small ng-bind-html="'SETTINGS.POPUP_PEER.BTN_SHOW_LIST_HELP' | translate"></small>
<!--small ng-bind-html="'SETTINGS.POPUP_PEER.BTN_SHOW_LIST_HELP' | translate"></small>
<button class="button button-positive button-clear positive button-outline button-full button-small-padding icon-left ink" ng-click="showNodeList()">
<i class="icon ion-wifi "></i>
{{'SETTINGS.POPUP_PEER.BTN_SHOW_LIST' | translate}}
</button>
</button>-->
</form>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment