-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
149 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<div class="text-button-wrapper"> | ||
<div class="link text-button" data-repo-index="{{i}}" ng-click="onLnBtnClicked($event); $event.stopPropagation();"> | ||
Link | ||
{{blamTranslate('Link');}} | ||
</div> | ||
</div> | ||
<div class="text-button-wrapper" ng-if="getAddonStatus(key) === 'NOT_INSTALLED'"> | ||
<div class="download text-button" data-repo-index="{{i}}" ng-click="!isOpsLocked && onDlBtnClicked($event); $event.stopPropagation();" ng-class="{locked: isOpsLocked}"> | ||
Install | ||
{{blamTranslate('Install');}} | ||
</div> | ||
</div> | ||
<div class="text-button-wrapper" ng-if="getAddonStatus(key) === 'UPDATABLE'"> | ||
<div class="update text-button" data-repo-index="{{i}}" ng-click="!isOpsLocked && onUpBtnClicked($event); $event.stopPropagation();" ng-class="{locked: isOpsLocked}"> | ||
Update | ||
{{blamTranslate('Update');}} | ||
</div> | ||
</div> | ||
<div class="text-button-wrapper" ng-if="getAddonStatus(key) === 'INSTALLED' || getAddonStatus(key) === 'UPDATABLE'"> | ||
<div class="remove text-button" data-repo-index="{{i}}" ng-click="!isOpsLocked && onRmBtnClicked($event); $event.stopPropagation();" ng-class="{locked: isOpsLocked}"> | ||
Remove | ||
{{blamTranslate('Remove');}} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
<div class="language-panel"> | ||
<div class="selectbox-wrapper" ng-show="true"> | ||
<select class="selectbox" name="langSelect" ng-change="onLangSelectorChanged()" ng-model="$parent.langSelect" ng-options="lang as lang for lang in langList"> | ||
</select> | ||
</div> | ||
</div> | ||
<div class="progress-panel"> | ||
<div class="progressbar"> | ||
<div class="progressbar-complete" style="width: {{ task.progressRate * 100 }}%"></div> | ||
</div> | ||
<div class="progress"> | ||
{{ task.progress }} | ||
{{ task.progress }} <font color="#000000">.</font> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
<div class="menu-item-title"> | ||
Version | ||
{{blamTranslate('Version');}} | ||
</div> | ||
<div class="blender-version selectbox-wrapper" ng-show="showBlVerSelect"> | ||
<select class="selectbox" name="blVerSelect" ng-change="onAddonSelectorChanged()" ng-model="$parent.blVerSelect" ng-options="ver as ver for ver in blVerList"> | ||
</select> | ||
</div> | ||
<div class="menu-item-title"> | ||
Addon List | ||
{{blamTranslate('Addon List');}} | ||
</div> | ||
<div class="menu-selector"> | ||
<li ng-repeat="list in addonLists" class="addon-list-selector-item" ng-class="{addonListActive: isAddonListActive($index)}" ng-click="onAddonListSelectorChanged($index)"> | ||
{{list.name}} | ||
{{blamTranslate(list.name);}} | ||
</li> | ||
</div> | ||
<div class="menu-item-title"> | ||
Category | ||
{{blamTranslate('Category');}} | ||
</div> | ||
<div class="menu-selector"> | ||
<li ng-repeat="category in addonCategories" class="addon-category-selector-item" ng-class="{addonCategoryActive: isAddonCategoryActive($index)}" ng-click="onAddonCategorySelectorChanged($index)"> | ||
{{category.name}} | ||
{{blamTranslate(category.name)}} | ||
</li> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
'use strict'; | ||
|
||
// external modules | ||
import * as LangES from 'lang/lang-es'; | ||
|
||
// own modules | ||
import Logger from 'logger'; | ||
const logger = new Logger(); | ||
|
||
export default class BlamTranslations | ||
{ | ||
constructor() { | ||
this['dict'] = { "Default (English)": {} }; | ||
this['currentLang'] = "Default (English)"; | ||
|
||
this._buildDict(); | ||
} | ||
|
||
_buildDict() { | ||
for (let key in LangES.langESDict) { | ||
this['dict'][key] = LangES.langESDict[key]; | ||
} | ||
} | ||
|
||
supportedLanguages() { | ||
let langs = [] | ||
for (let key in this['dict']) { | ||
langs.push(key); | ||
} | ||
return langs; | ||
} | ||
|
||
setLanguage(lang) { | ||
let supported = this.supportedLanguages(); | ||
for (let i = 0; i < supported.length; ++i) { | ||
if (supported[i] == lang) { | ||
this['currentLang'] = lang; | ||
return true; | ||
} | ||
} | ||
|
||
return false; // not supported | ||
} | ||
|
||
translate(key) { | ||
let lang = this['currentLang']; | ||
|
||
if (this['dict'][lang][key] === undefined) { | ||
return key; | ||
} | ||
|
||
return this['dict'][lang][key]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
export const langESDict = { | ||
"Spanish": { | ||
"Version": "Versión", | ||
"Addon List": "Lista de Añadidos", | ||
"Installed": "Instalado", | ||
"Update": "Actualizar", | ||
"Category": "Categoría", | ||
"All": "Todo", | ||
"3D View": "Vista 3D", | ||
"Add Curve": "Añadir Curva", | ||
"Add Mesh": "Añadir Malla", | ||
"Animation": "Animación", | ||
"Development": "Desarrollo", | ||
"Game Engine": "Motor de Juegos", | ||
"Import-Export": "Importar-Exportar", | ||
"Mesh": "Malla", | ||
"Node": "Nodo", | ||
"Object": "Objeto", | ||
"Paint": "Pintar", | ||
"Pie Menu": "Menú Circular", | ||
"Render": "Renderizar", | ||
"Rigging": "Rigging", | ||
"System": "Sistema", | ||
"UI": "Interfaz", | ||
"Sort:": "Ordenar:", | ||
"Add-on Name": "Nombre de Añadido", | ||
"Author": "Autor", | ||
"Ascend": "Ascendente", | ||
"Descend": "Descendente", | ||
"(No Description)": "(Sin Descripción)", | ||
"Link": "Enlace", | ||
"Install": "Instalar", | ||
"Remove": "Eliminar", | ||
"Downloading Add-on ...": "Descargando Añadido", | ||
"Installed Add-on": "Añadido Instalado", | ||
"Deleted Add-on": "Añadido Borrado", | ||
"Close": "Cerrar" | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters