Saturday, May 2, 2009

myTinyTodo v0.9

I have updated the script. Now it includes russian translation, as example of method how to localize this app.

How to make your translation:

1. Copy default lang files 'default.php' and 'default.js' in directory 'lang' with new names as language you want (for ex. 'spanish.php' and 'spanish.js').
2. Modify text strings in this files as you need (in UTF-8 encoding).
3. Specify interface language in 'config.php' at line starting with $config['lang'], as  $config['lang'] = "spanish".

Updated:
 v0.9.1:
* Added string to lang file 'default.js': 
error: 'Some error occured'
* Header and title can be optionally translated in '.php' as
$lang['My Tiny Todolist'] = "Your todolist";

Upd2: Format of language packs has changed in version 1.0.

13 comments:

  1. I've translated it into French... if someone is intersted, contact me : toinousp @ gmail.com (without spaces). I also edit ajax.js and index.php to translate : 'Ooops, error' and 'Powered by' into french. sorry for my english if he is bad.

    ReplyDelete
  2. Hi, i just had a spanish translation of your app. I can translate any version if you want. Contact with me on: diegojimenezmartin@gmail.com

    ReplyDelete
  3. You can maybe add this in the style.css to highlight the drag and drop effect :
    #tasklist li:hover { cursor: move; }
    #tasklist li:hover .task-through { cursor: default; }
    #tasklist li:hover .task-note-block span { cursor: default; }
    sorry again for my english if he's bad ...

    ReplyDelete
  4. feature request: a one-click sort function (priority, name and date) would be nice :)

    ReplyDelete
  5. Spanish.js

    lang = {
    actionNote: 'Nota',
    actionEdit: 'Modificar',
    actionDelete: 'Eliminar',
    taskDate: function(date) {
    return 'agregada a las '+date;
    },
    confirmDelete: 'Seguro que quiere eliminar esta tarea?',
    actionNoteSave: 'Guardar',
    actionNoteCancel: 'Cancelar',
    error: 'Un error ha ocurrido'
    };

    Spanish.php

    $lang = array();

    $lang['tab_newtask'] = "Nueva tarea";
    $lang['tab_search'] = "Buscar";
    $lang['btn_add'] = "Añadir";
    $lang['btn_search'] = "Buscar";
    $lang['searching'] = "Buscando";
    $lang['tasks'] = "Tarea";
    $lang['show_completed'] = "Mostrar tareas completadas";
    $lang['hide_completed'] = "Ocultar tareas completadas";
    $lang['return_view'] = "Regresar a la vista de tareas";
    $lang['edit_task'] = "Editar tarea";
    $lang['priority'] = "Prioridad";
    $lang['task'] = "Tarea";
    $lang['note'] = "Nota";
    $lang['save'] = "Guardar";
    $lang['cancel'] = "Cancelar";

    ReplyDelete
  6. Getting text from string would be awesome. Look, you type in input this:
    Buy milk tomorrow (notes) #1
    And you have task 'Buy milk' with notes ' notes, scheduled for tomorrow with prio '3'. This is what i'm talking about. You'll have to get info separately from input but it will be awesome. You should also start thinking of more realistic priority like high, medium, low not that creepy numbers

    ReplyDelete
  7. nice Tool.. but i can't get it working: Fatal error: Class 'SQLiteDatabase' not found in class.db.sqlite.php on line 54

    Any sug?

    ReplyDelete
  8. @Przemek: What's in this input string is "#1"? This syntax somewhere else is used?

    @tobillo: Probably missing or disabled sqlite module in PHP installation.

    ReplyDelete
  9. # and the number '1' or any number would be for adding priority for todo task and it wouldn't be included in in task's title

    ReplyDelete
  10. Amazing! a years a go my boss made a script like this but much rustic.

    Amazign! and wonderful

    ReplyDelete
  11. Hi, congratulations on the application. I have translated into Catalan. my mail is mail[@]edgargranados .es

    ReplyDelete
  12. Hi there, really nice tool!
    I've translated into italian.

    http://rapidshare.com/files/229502893/italian.rar.html

    ReplyDelete
  13. now it works! i've tried the mysql version ;-) thanks! great tool!

    ReplyDelete