diff --git a/data/en-US.properties b/data/en-US.properties index c755493..af492c1 100644 --- a/data/en-US.properties +++ b/data/en-US.properties @@ -4,8 +4,12 @@ message = Let's start main_list = ToDo Lists back_button = Back add_list = Add list -settings = Settings -about = About create_list = Create list +new_list = New list new_list_name = Name: -add_new_list = Add new list \ No newline at end of file +add_new_list = Add new list +add_new_item = Add new item +delete_list = Delete list +home_list_menu = Lists +settings_menu = Settings +about_menu = About \ No newline at end of file diff --git a/data/es.properties b/data/es.properties index 3b490c7..b3e45af 100644 --- a/data/es.properties +++ b/data/es.properties @@ -1,11 +1,15 @@ app_title = Lista de tareas -app_description.innerHTML = Lista de tareas. ¡Que no se te olvide nada! -message = Comenzar +app_description.innerHTML = Lista de Tareas. ¡Nunca olvides nada! +message = Empecemos main_list = Listas de tareas back_button = Atrás add_list = Añadir lista -settings = Ajustes -about = Acerca de create_list = Crear lista +new_list = Nueva lista new_list_name = Nombre: -add_new_list = Añadir nueva lista \ No newline at end of file +add_new_list = Añadir nueva lista +add_new_item = Añadir nuevo item +delete_list = Borrar lista +home_list_menu = Listas +settings_menu = Ajustes +about_menu = Acerca de... \ No newline at end of file diff --git a/index.html b/index.html index 0f89393..140dfe4 100644 --- a/index.html +++ b/index.html @@ -27,16 +27,16 @@
-
+

ToDo List

-
+ -
+
Create list
@@ -44,7 +44,8 @@ Add new list
-
+
+

-
+
diff --git a/js/app.js b/js/app.js index 971accc..6fda5d5 100644 --- a/js/app.js +++ b/js/app.js @@ -6,6 +6,7 @@ function openList(elementClicked) { var listID = elementClicked.data('listID'); var listTitle = getListTitle(listID); + $('#list_title').text(listTitle); $('ul#list_display').find('li').remove(); var numElements = getListItemCount(listID); @@ -34,7 +35,6 @@ function openList(elementClicked) { $('#add_new_item').data('currentlist', listID); $('#delete_list').data('currentlist', listID); $.afui.loadContent('#list_panel', false, false, "slide"); - $.afui.setTitle(listTitle); } function itemClicked(elementClicked) { @@ -119,10 +119,13 @@ window.addEventListener('DOMContentLoaded', function() { // https://developer.mozilla.org/Web/API/Element.innerHTML#Security_considerations // message.textContent = translate('message'); + $('#main').data('title', translate('main_list')); + loadLists(); $('#add_list').click(function(){ $.afui.loadContent('#new_list', false, false, "slide"); + // $.afui.setTitle(translate('new_list')); }); $('#add_new_list_button').click(function(){ @@ -154,4 +157,4 @@ window.addEventListener('DOMContentLoaded', function() { deleteListClicked(listID); }); } -}); +}); \ No newline at end of file