diff options
| author | dusan <dusan@ubuntu> | 2012-12-13 14:04:21 +0100 |
|---|---|---|
| committer | dusan <dusan@ubuntu> | 2012-12-13 14:04:21 +0100 |
| commit | de95ce68f7e1e7544e27f5c3be69ca76f630bb54 (patch) | |
| tree | 1540eba024cac432575d10974669f1a028f78f3f /addons/project_long_term | |
| parent | 4d4cfcd9247cb7f4eab95815f3164b290aef7c52 (diff) | |
| parent | 4f880230a9126c22d33e2167815a39fc6a2c6c33 (diff) | |
[MERGE]merge with parent trunk
bzr revid: dusan@ubuntu-20121213130421-bxh0ehtpe3zjidzh
Diffstat (limited to 'addons/project_long_term')
| -rw-r--r-- | addons/project_long_term/i18n/es.po | 36 | ||||
| -rw-r--r-- | addons/project_long_term/i18n/nl.po | 10 | ||||
| -rw-r--r-- | addons/project_long_term/i18n/ru.po | 509 | ||||
| -rw-r--r-- | addons/project_long_term/project_long_term.py | 10 |
4 files changed, 540 insertions, 25 deletions
diff --git a/addons/project_long_term/i18n/es.po b/addons/project_long_term/i18n/es.po index 0cec89c68a4..ad6aa3651d2 100644 --- a/addons/project_long_term/i18n/es.po +++ b/addons/project_long_term/i18n/es.po @@ -8,14 +8,14 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" "POT-Creation-Date: 2012-12-03 16:04+0000\n" -"PO-Revision-Date: 2012-05-10 18:13+0000\n" -"Last-Translator: Borja López Soilán (NeoPolus) <borjalopezsoilan@gmail.com>\n" +"PO-Revision-Date: 2012-12-12 15:35+0000\n" +"Last-Translator: Pedro Manuel Baeza <pedro.baeza@gmail.com>\n" "Language-Team: Spanish <es@li.org>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-12-04 05:51+0000\n" -"X-Generator: Launchpad (build 16335)\n" +"X-Launchpad-Export-Date: 2012-12-13 04:44+0000\n" +"X-Generator: Launchpad (build 16361)\n" #. module: project_long_term #: help:project.phase,constraint_date_end:0 @@ -83,12 +83,12 @@ msgstr "Fases planificadas" #: view:project.phase:0 #: field:project.phase,state:0 msgid "Status" -msgstr "" +msgstr "Estado" #. module: project_long_term #: field:project.compute.phases,target_project:0 msgid "Action" -msgstr "" +msgstr "Acción" #. module: project_long_term #: view:project.phase:0 @@ -120,7 +120,7 @@ msgstr "Nuevo" #. module: project_long_term #: field:project.phase,product_uom:0 msgid "Duration Unit of Measure" -msgstr "" +msgstr "Unidad de medida de la duración" #. module: project_long_term #: model:ir.ui.menu,name:project_long_term.menu_view_resource_calendar_leaves @@ -147,7 +147,7 @@ msgstr "Fases en proceso" #: code:addons/project_long_term/project_long_term.py:141 #, python-format msgid "%s (copy)" -msgstr "" +msgstr "%s (copia)" #. module: project_long_term #: code:addons/project_long_term/wizard/project_compute_phases.py:48 @@ -159,7 +159,7 @@ msgstr "Por favor indique el proyecto a planificar." #: view:project.compute.phases:0 #: view:project.compute.tasks:0 msgid "or" -msgstr "" +msgstr "o" #. module: project_long_term #: view:project.phase:0 @@ -181,13 +181,15 @@ msgstr "Fecha de inicio mínima" #: help:project.phase,product_uom:0 msgid "" "Unit of Measure (Unit of Measure) is the unit of measurement for Duration" -msgstr "" +msgstr "Unidad de medida es la unidad para medir la duración" #. module: project_long_term #: help:project.phase,user_ids:0 msgid "" "The resources on the project can be computed automatically by the scheduler." msgstr "" +"Los recursos del proyecto pueden ser calculados automáticamente por el " +"planificador." #. module: project_long_term #: field:project.phase,sequence:0 @@ -197,7 +199,7 @@ msgstr "Secuencia" #. module: project_long_term #: help:account.analytic.account,use_phases:0 msgid "Check this field if you plan to use phase-based scheduling" -msgstr "" +msgstr "Marque esta casilla si planea usar planificación por fases" #. module: project_long_term #: help:project.user.allocation,date_start:0 @@ -213,6 +215,10 @@ msgid "" " \n" " If the phase is over, the status is set to 'Done'." msgstr "" +"Si se ha acaba de crear la fase, el estado es 'Borrador'.\n" +"Si la fase se ha iniciado, el estado se convierte a 'En proceso'.\n" +"Si se necesita revisar la fase, su estado es 'Pendiente'.\n" +"Si la fase ha acabado, su estado es 'Realizada'." #. module: project_long_term #: field:project.phase,progress:0 @@ -319,7 +325,7 @@ msgstr "Detalles tareas" #. module: project_long_term #: field:project.project,phase_count:0 msgid "Open Phases" -msgstr "" +msgstr "Etapas abiertas" #. module: project_long_term #: help:project.phase,date_end:0 @@ -417,7 +423,7 @@ msgstr "Indica el orden cuando se muestra la lista de fases" #. module: project_long_term #: model:ir.actions.act_window,name:project_long_term.project_phase_task_list msgid "Tasks" -msgstr "" +msgstr "Tareas" #. module: project_long_term #: help:project.user.allocation,date_end:0 @@ -462,7 +468,7 @@ msgstr "Mes" #. module: project_long_term #: model:ir.model,name:project_long_term.model_account_analytic_account msgid "Analytic Account" -msgstr "" +msgstr "Cuenta analítica" #. module: project_long_term #: field:project.phase,constraint_date_end:0 @@ -485,7 +491,7 @@ msgstr "Planificar tareas" #: view:project.phase:0 #: selection:project.phase,state:0 msgid "Done" -msgstr "Hecho" +msgstr "Realizada" #. module: project_long_term #: selection:project.compute.phases,target_project:0 diff --git a/addons/project_long_term/i18n/nl.po b/addons/project_long_term/i18n/nl.po index 757a3103709..72bebf93825 100644 --- a/addons/project_long_term/i18n/nl.po +++ b/addons/project_long_term/i18n/nl.po @@ -8,14 +8,14 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" "POT-Creation-Date: 2012-12-03 16:04+0000\n" -"PO-Revision-Date: 2012-11-26 20:20+0000\n" +"PO-Revision-Date: 2012-12-09 18:54+0000\n" "Last-Translator: Erwin van der Ploeg (Endian Solutions) <Unknown>\n" "Language-Team: Dutch <nl@li.org>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-12-04 05:51+0000\n" -"X-Generator: Launchpad (build 16335)\n" +"X-Launchpad-Export-Date: 2012-12-10 04:39+0000\n" +"X-Generator: Launchpad (build 16341)\n" #. module: project_long_term #: help:project.phase,constraint_date_end:0 @@ -120,7 +120,7 @@ msgstr "Nieuw" #. module: project_long_term #: field:project.phase,product_uom:0 msgid "Duration Unit of Measure" -msgstr "" +msgstr "Maateenheid tijdsduur" #. module: project_long_term #: model:ir.ui.menu,name:project_long_term.menu_view_resource_calendar_leaves @@ -319,7 +319,7 @@ msgstr "Taakdetails" #. module: project_long_term #: field:project.project,phase_count:0 msgid "Open Phases" -msgstr "" +msgstr "Open fases" #. module: project_long_term #: help:project.phase,date_end:0 diff --git a/addons/project_long_term/i18n/ru.po b/addons/project_long_term/i18n/ru.po new file mode 100644 index 00000000000..5df46595efb --- /dev/null +++ b/addons/project_long_term/i18n/ru.po @@ -0,0 +1,509 @@ +# Russian translation for openobject-addons +# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" +"POT-Creation-Date: 2012-12-03 16:04+0000\n" +"PO-Revision-Date: 2012-12-11 07:40+0000\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: Russian <ru@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-12-12 04:41+0000\n" +"X-Generator: Launchpad (build 16361)\n" + +#. module: project_long_term +#: help:project.phase,constraint_date_end:0 +msgid "force the phase to finish before this date" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +#: selection:project.phase,state:0 +msgid "In Progress" +msgstr "" + +#. module: project_long_term +#: field:account.analytic.account,use_phases:0 +#: model:ir.actions.act_window,name:project_long_term.act_project_phases +#: view:project.project:0 +msgid "Phases" +msgstr "" + +#. module: project_long_term +#: field:project.phase,user_ids:0 +msgid "Assigned Users" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +#: field:project.phase,next_phase_ids:0 +msgid "Next Phases" +msgstr "" + +#. module: project_long_term +#: model:ir.model,name:project_long_term.model_project_user_allocation +msgid "Phase User Allocation" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "Project's Tasks" +msgstr "" + +#. module: project_long_term +#: model:ir.actions.act_window,help:project_long_term.action_project_compute_phases +msgid "" +"To schedule phases of all or a specified project. It then open a gantt " +"view.\n" +" " +msgstr "" + +#. module: project_long_term +#: field:project.phase,task_ids:0 +msgid "Project Tasks" +msgstr "" + +#. module: project_long_term +#: model:ir.actions.act_window,name:project_long_term.action_project_compute_phases +#: model:ir.ui.menu,name:project_long_term.menu_compute_phase +#: view:project.compute.phases:0 +msgid "Schedule Phases" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +#: field:project.phase,state:0 +msgid "Status" +msgstr "" + +#. module: project_long_term +#: field:project.compute.phases,target_project:0 +msgid "Action" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "Start Phase" +msgstr "" + +#. module: project_long_term +#: model:ir.model,name:project_long_term.model_project_task +msgid "Task" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "Draft" +msgstr "" + +#. module: project_long_term +#: view:project.compute.phases:0 +#: view:project.compute.tasks:0 +msgid "C_ompute" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +#: selection:project.phase,state:0 +msgid "New" +msgstr "" + +#. module: project_long_term +#: field:project.phase,product_uom:0 +msgid "Duration Unit of Measure" +msgstr "" + +#. module: project_long_term +#: model:ir.ui.menu,name:project_long_term.menu_view_resource_calendar_leaves +msgid "Resource Leaves" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +#: selection:project.phase,state:0 +msgid "Pending" +msgstr "" + +#. module: project_long_term +#: help:project.phase,progress:0 +msgid "Computed based on related tasks" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "In Progress Phases" +msgstr "" + +#. module: project_long_term +#: code:addons/project_long_term/project_long_term.py:141 +#, python-format +msgid "%s (copy)" +msgstr "" + +#. module: project_long_term +#: code:addons/project_long_term/wizard/project_compute_phases.py:48 +#, python-format +msgid "Please specify a project to schedule." +msgstr "" + +#. module: project_long_term +#: view:project.compute.phases:0 +#: view:project.compute.tasks:0 +msgid "or" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +#: view:project.user.allocation:0 +msgid "Group By..." +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "Remaining Hours" +msgstr "" + +#. module: project_long_term +#: field:project.phase,constraint_date_start:0 +msgid "Minimum Start Date" +msgstr "" + +#. module: project_long_term +#: help:project.phase,product_uom:0 +msgid "" +"Unit of Measure (Unit of Measure) is the unit of measurement for Duration" +msgstr "" + +#. module: project_long_term +#: help:project.phase,user_ids:0 +msgid "" +"The resources on the project can be computed automatically by the scheduler." +msgstr "" + +#. module: project_long_term +#: field:project.phase,sequence:0 +msgid "Sequence" +msgstr "" + +#. module: project_long_term +#: help:account.analytic.account,use_phases:0 +msgid "Check this field if you plan to use phase-based scheduling" +msgstr "" + +#. module: project_long_term +#: help:project.user.allocation,date_start:0 +msgid "Starting Date" +msgstr "" + +#. module: project_long_term +#: help:project.phase,state:0 +msgid "" +"If the phase is created the status 'Draft'.\n" +" If the phase is started, the status becomes 'In Progress'.\n" +" If review is needed the phase is in 'Pending' status. " +" \n" +" If the phase is over, the status is set to 'Done'." +msgstr "" + +#. module: project_long_term +#: field:project.phase,progress:0 +msgid "Progress" +msgstr "" + +#. module: project_long_term +#: model:ir.ui.menu,name:project_long_term.menu_pm_users_project1 +#: model:ir.ui.menu,name:project_long_term.menu_view_resource +msgid "Resources" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "My Projects" +msgstr "" + +#. module: project_long_term +#: view:project.project:0 +#: view:project.user.allocation:0 +msgid "Phase" +msgstr "" + +#. module: project_long_term +#: help:project.phase,duration:0 +msgid "By default in days" +msgstr "" + +#. module: project_long_term +#: model:ir.ui.menu,name:project_long_term.menu_view_resource_calendar +msgid "Working Time" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "Pending Phases" +msgstr "" + +#. module: project_long_term +#: code:addons/project_long_term/project_long_term.py:126 +#, python-format +msgid "Day" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "Related Tasks" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "Start Month" +msgstr "" + +#. module: project_long_term +#: field:project.phase,date_end:0 +#: field:project.user.allocation,date_end:0 +msgid "End Date" +msgstr "" + +#. module: project_long_term +#: model:ir.model,name:project_long_term.model_project_compute_tasks +msgid "Project Compute Tasks" +msgstr "" + +#. module: project_long_term +#: model:ir.actions.act_window,help:project_long_term.act_project_phase +msgid "" +"A project can be split into the different phases. For each phase, you can " +"define your users allocation, describe different tasks and link your phase " +"to previous and next phases, add date constraints for the automated " +"scheduling. Use the long term planning in order to planify your available " +"users, convert your phases into a series of tasks when you start working on " +"the project." +msgstr "" + +#. module: project_long_term +#: selection:project.compute.phases,target_project:0 +msgid "Compute a Single Project" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +#: field:project.phase,previous_phase_ids:0 +msgid "Previous Phases" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "New Phases" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "Tasks Details" +msgstr "" + +#. module: project_long_term +#: field:project.project,phase_count:0 +msgid "Open Phases" +msgstr "" + +#. module: project_long_term +#: help:project.phase,date_end:0 +msgid "" +" It's computed by the scheduler according to the start date and the duration." +msgstr "" + +#. module: project_long_term +#: constraint:project.phase:0 +msgid "Loops in phases not allowed" +msgstr "" + +#. module: project_long_term +#: view:project.user.allocation:0 +#: field:project.user.allocation,user_id:0 +msgid "User" +msgstr "" + +#. module: project_long_term +#: model:ir.model,name:project_long_term.model_project_project +#: field:project.compute.phases,project_id:0 +#: field:project.compute.tasks,project_id:0 +#: view:project.phase:0 +#: field:project.phase,project_id:0 +#: view:project.task:0 +#: view:project.user.allocation:0 +#: field:project.user.allocation,project_id:0 +msgid "Project" +msgstr "" + +#. module: project_long_term +#: view:project.compute.phases:0 +#: view:project.compute.tasks:0 +#: view:project.phase:0 +msgid "Cancel" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "Project Users" +msgstr "" + +#. module: project_long_term +#: model:ir.model,name:project_long_term.model_project_phase +#: view:project.phase:0 +#: view:project.task:0 +#: field:project.task,phase_id:0 +#: field:project.user.allocation,phase_id:0 +msgid "Project Phase" +msgstr "" + +#. module: project_long_term +#: model:ir.ui.menu,name:project_long_term.menu_phase_schedule +msgid "Scheduling" +msgstr "" + +#. module: project_long_term +#: constraint:project.phase:0 +msgid "Phase start-date must be lower than phase end-date." +msgstr "" + +#. module: project_long_term +#: selection:project.phase,state:0 +msgid "Cancelled" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "Total Hours" +msgstr "" + +#. module: project_long_term +#: model:ir.model,name:project_long_term.model_project_compute_phases +msgid "Project Compute Phases" +msgstr "" + +#. module: project_long_term +#: field:project.phase,date_start:0 +#: field:project.user.allocation,date_start:0 +msgid "Start Date" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "Constraints" +msgstr "" + +#. module: project_long_term +#: help:project.phase,sequence:0 +msgid "Gives the sequence order when displaying a list of phases." +msgstr "" + +#. module: project_long_term +#: model:ir.actions.act_window,name:project_long_term.project_phase_task_list +msgid "Tasks" +msgstr "" + +#. module: project_long_term +#: help:project.user.allocation,date_end:0 +msgid "Ending Date" +msgstr "" + +#. module: project_long_term +#: code:addons/project_long_term/wizard/project_compute_phases.py:48 +#, python-format +msgid "Error!" +msgstr "" + +#. module: project_long_term +#: help:project.phase,date_start:0 +msgid "" +"It's computed by the scheduler according the project date or the end date of " +"the previous phase." +msgstr "" + +#. module: project_long_term +#: model:ir.actions.act_window,name:project_long_term.act_project_phase +#: model:ir.actions.act_window,name:project_long_term.act_project_phase_list +#: model:ir.ui.menu,name:project_long_term.menu_project_phase +#: model:ir.ui.menu,name:project_long_term.menu_project_phase_list +#: view:project.phase:0 +#: field:project.project,phase_ids:0 +msgid "Project Phases" +msgstr "" + +#. module: project_long_term +#: help:project.phase,constraint_date_start:0 +msgid "force the phase to start after this date" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +msgid "Month" +msgstr "" + +#. module: project_long_term +#: model:ir.model,name:project_long_term.model_account_analytic_account +msgid "Analytic Account" +msgstr "" + +#. module: project_long_term +#: field:project.phase,constraint_date_end:0 +msgid "Deadline" +msgstr "" + +#. module: project_long_term +#: view:project.user.allocation:0 +msgid "Project User Allocation" +msgstr "" + +#. module: project_long_term +#: model:ir.actions.act_window,name:project_long_term.action_project_compute_tasks +#: model:ir.ui.menu,name:project_long_term.menu_compute_tasks +#: view:project.compute.tasks:0 +msgid "Schedule Tasks" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +#: selection:project.phase,state:0 +msgid "Done" +msgstr "" + +#. module: project_long_term +#: selection:project.compute.phases,target_project:0 +msgid "Compute All My Projects" +msgstr "" + +#. module: project_long_term +#: field:project.phase,user_force_ids:0 +msgid "Force Assigned Users" +msgstr "" + +#. module: project_long_term +#: view:project.phase:0 +#: field:project.phase,duration:0 +msgid "Duration" +msgstr "" + +#. module: project_long_term +#: view:project.user.allocation:0 +msgid "Users" +msgstr "" + +#. module: project_long_term +#: field:project.phase,name:0 +msgid "Name" +msgstr "" + +#. module: project_long_term +#: model:ir.actions.act_window,name:project_long_term.act_resouce_allocation +#: model:ir.ui.menu,name:project_long_term.menu_resouce_allocation +#: view:project.phase:0 +#: view:project.user.allocation:0 +msgid "Planning of Users" +msgstr "" diff --git a/addons/project_long_term/project_long_term.py b/addons/project_long_term/project_long_term.py index db6c532d503..419aa5e3381 100644 --- a/addons/project_long_term/project_long_term.py +++ b/addons/project_long_term/project_long_term.py @@ -123,7 +123,6 @@ class project_phase(osv.osv): _defaults = { 'state': 'draft', 'sequence': 10, - 'product_uom': lambda self,cr,uid,c: self.pool.get('product.uom').search(cr, uid, [('name', '=', _('Day'))], context=c)[0] } _order = "project_id, date_start, sequence" _constraints = [ @@ -169,11 +168,12 @@ class project_phase(osv.osv): for phase in phases: if phase.state in ('done','cancelled'): continue + # FIXME: brittle and not working if context['lang'] != 'en_US' duration_uom = { - 'days': 'd', 'day': 'd', 'd':'d', - 'months': 'm', 'month':'month', 'm':'m', - 'weeks': 'w', 'week': 'w', 'w':'w', - 'hours': 'H', 'hour': 'H', 'h':'H', + 'day(s)': 'd', 'days': 'd', 'day': 'd', 'd':'d', + 'month(s)': 'm', 'months': 'm', 'month':'month', 'm':'m', + 'week(s)': 'w', 'weeks': 'w', 'week': 'w', 'w':'w', + 'hour(s)': 'H', 'hours': 'H', 'hour': 'H', 'h':'H', }.get(phase.product_uom.name.lower(), "H") duration = str(phase.duration) + duration_uom result += ''' |
