Add Catalan support.

This commit is contained in:
Paulo Gustavo Veiga
2013-02-22 20:39:51 -03:00
parent a7316d516c
commit 99a3fa64ec
4 changed files with 327 additions and 1 deletions

View File

@@ -158,10 +158,17 @@ public class MindmapController extends BaseController {
collaborationProperties.setMindmapProperties(properties);
// Validate content ...
final String xml = restMindmap.getXml();
String xml = restMindmap.getXml();
if (xml == null) {
throw new IllegalArgumentException("Map xml can not be null");
}
// Check that what we received a valid mindmap...
xml = xml.trim();
if (!xml.startsWith("<map") || !xml.endsWith("</map>")) {
throw new IllegalArgumentException("Map seems not to be a valid mindmap:"+xml);
}
mindmap.setXmlStr(xml);
// Update map ...

View File

@@ -0,0 +1,60 @@
DISCARD_CHANGES=Descartar els canvis
SAVE=Desar
INSERT=Inserir
ZOOM_IN=Apropar
ZOOM_OUT=Allunyar
TOPIC_BORDER_COLOR=Color del bord
TOPIC_SHAPE=Forma del Tòpic
TOPIC_ADD=Afegir Tòpic
TOPIC_DELETE=Esborrar Tòpic
TOPIC_ICON=Afegir Icona
TOPIC_LINK=Afegir Enllaç
TOPIC_NOTE=Afegir Nota
TOPIC_COLOR=Color del Tòpic
TOPIC_RELATIONSHIP=Relació
FONT_FAMILY=Tipus de font
FONT_SIZE=Mida del text
FONT_BOLD=Negreta
FONT_ITALIC=Itàlica
FONT_COLOR=Color del Text
UNDO=Refer
NOTE=Nota
LOADING=Carregant ...
PRINT=Imprimir
PUBLISH=Publicar
REDO=Desfer
ADD_TOPIC=Afegir Tòpic
COLLABORATE=Compartir
EXPORT=Exportar
HISTORY=Història
SAVE_COMPLETE=Desat completat
SAVING=Gravant ...
ONE_TOPIC_MUST_BE_SELECTED=No ha estat possible crear un nou tòpic. Com a mínim ha de seleccionar un tòpic.
ONLY_ONE_TOPIC_MUST_BE_SELECTED=No ha estar possible crear un nou tòpic. Només un tòpic ha d'estar seleccionat.
SAVE_COULD_NOT_BE_COMPLETED=No s'ha pogut desar. Provi més tard.
UNEXPECTED_ERROR_LOADING=Ho sentim, un error ha esdevingut inesperadament. Provi recarregant l'editor, si el problema continua contacti a support@wisemapping.com.
ZOOM_ERROR=No es pot fer més zoom.
ZOOM_IN_ERROR=El zoom és massa creixent.
MAIN_TOPIC=Tòpic principal
SUB_TOPIC=Tòpic secundari
ISOLATED_TOPIC=Tòpic aïllat
CENTRAL_TOPIC=Tòpic central
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE=Els tòpics fills no es poden col·lapsar. Només un tòpic ha d'estar seleccionat.
SHORTCUTS=Accessos directes
ENTITIES_COULD_NOT_BE_DELETED=El tòpic o la relució no poden ser esborrats. Com a mínim ha de seleccionar un.
AT_LEAST_ONE_TOPIC_MUST_BE_SELECTED=Com a mínim ha de seleccionar un tòpic.
CLIPBOARD_IS_EMPTY=Res a copiar.
CENTRAL_TOPIC_CAN_NOT_BE_DELETED=El tòpic central no pot esborrar-se.
RELATIONSHIP_COULD_NOT_BE_CREATED=La relució no s'ha pout drear. Primer has de seleccionar una relució pare.
SELECTION_COPIED_TO_CLIPBOARD=Tòpics copiats
WRITE_YOUR_TEXT_HERE=Escriu aquí la teva nota ...
REMOVE=Esborrar
ACCEPT=Acceptar
CANCEL=Cancel·lar
LINK=Enllaç
OPEN_LINK=Obrir Enllaç
SESSION_EXPIRED=La seva sessió ha finalitzat. Si us plau, torni a connectar-se.

View File

@@ -78,6 +78,9 @@
<option value="zh_TW" <c:if test="${user.locale=='zh_TW'}">selected="selected" </c:if>>Chinese
(Traditional Han) - 中文 (繁體中文)
</option>
<option value="ca" <c:if test="${user.locale=='ca'}">selected="selected" </c:if>>Catalan -
català
</option>
</select>
<br/>
<input type="submit" id="changeLanguageBtn" class="btn btn-primary"