plugin dev and translation links

This commit is contained in:
antelle 2017-05-17 19:25:08 +02:00
parent d4721664bf
commit f59c4970c9
4 changed files with 14 additions and 6 deletions

View File

@ -12,7 +12,8 @@ const Links = {
AutoType: 'https://github.com/keeweb/keeweb/wiki/Auto-Type',
Translation: 'https://keeweb.oneskyapp.com/',
Donation: 'https://www.paypal.me/dvitkovsky',
Plugins: 'https://plugins.keeweb.info'
Plugins: 'https://plugins.keeweb.info',
PluginDevelopStart: 'https://github.com/keeweb/keeweb/wiki/Plugins'
};
module.exports = Links;

View File

@ -325,11 +325,7 @@
"setGenThemeSd": "Solarized dark",
"setGenThemeSl": "Solarized light",
"setGenLocale": "Language",
"setGenLocImprove": "translate the app to your language",
"setGenLocOther": "other languages are available as plugins",
"setGenLocMsg": "Help translating KeeWeb",
"setGenLocMsgBody": "If you would like to see KeeWeb in your language, please help us with translation.",
"setGenLocMsgLink": "Translate the app",
"setGenFontSize": "Font size",
"setGenFontSizeNormal": "Normal",
"setGenFontSizeLarge": "Large",
@ -476,6 +472,10 @@
"setPlInstallUrlDesc": "If the plugin is not in the gallery, you can install it manually from URL",
"setPlOfficial": "Official KeeWeb plugin",
"setPlSearch": "Search for plugins",
"setPlDevelop": "Want to develop your own plugins?",
"setPlDevelopStart": "Start here",
"setPlTranslate": "Or you can {}",
"setPlTranslateLink": "translate the app to your language",
"setAboutTitle": "About",
"setAboutBuilt": "This app is built with these awesome tools",

View File

@ -8,6 +8,7 @@ const Format = require('../../util/format');
const SettingsManager = require('../../comp/settings-manager');
const SignatureVerifier = require('../../util/signature-verifier');
const FeatureDetector = require('../../util/feature-detector');
const Links = require('../../const/links');
const SettingsPluginsView = Backbone.View.extend({
template: require('templates/settings/settings-plugins.hbs'),
@ -55,7 +56,9 @@ const SettingsPluginsView = Backbone.View.extend({
galleryLoadError: PluginGallery.loadError,
galleryPlugins: this.getGalleryPlugins(),
searchStr: this.searchStr,
hasUnicodeFlags: FeatureDetector.hasUnicodeFlags()
hasUnicodeFlags: FeatureDetector.hasUnicodeFlags(),
pluginDevLink: Links.PluginDevelopStart,
translateLink: Links.Translation
});
if (this.searchStr) {
this.showFilterResults();

View File

@ -1,5 +1,9 @@
<div>
<h1><i class="fa fa-puzzle-piece"></i> {{res 'plugins'}}</h1>
<div>
{{res 'setPlDevelop'}} <a href="{{pluginDevLink}}" target="_blank">{{res 'setPlDevelopStart'}}</a>.
{{#res 'setPlTranslate'}}<a href="{{translateLink}}" target="_blank">{{res 'setPlTranslateLink'}}</a>{{/res}}.
</div>
<div class="settings__plugins-list">
{{#each plugins as |plugin|}}
<div class="settings__plugins-plugin">