fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [7417] property: translation


From: Sigurd Nes
Subject: [Fmsystem-commits] [7417] property: translation
Date: Wed, 22 Jun 2011 12:49:52 +0000

Revision: 7417
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7417
Author:   sigurdne
Date:     2011-06-22 12:49:51 +0000 (Wed, 22 Jun 2011)
Log Message:
-----------
property: translation

Modified Paths:
--------------
    trunk/property/inc/class.uientity.inc.php
    trunk/property/setup/phpgw_no.lang
    trunk/property/templates/base/entity.xsl

Modified: trunk/property/inc/class.uientity.inc.php
===================================================================
--- trunk/property/inc/class.uientity.inc.php   2011-06-22 09:38:27 UTC (rev 
7416)
+++ trunk/property/inc/class.uientity.inc.php   2011-06-22 12:49:51 UTC (rev 
7417)
@@ -1572,13 +1572,6 @@
 
                        //                      
$GLOBALS['phpgw']->js->validate_file('overlib','overlib','property');
 
-                       $table_apply[] = array
-                               (
-                                       'lang_save'                             
                => lang('save'),
-                                       'lang_cancel'                           
        => lang('cancel'),
-                                       'lang_apply'                            
        => lang('apply'),
-                               );
-
                        $pdf_data = array
                                (
                                        'menuaction'    => 
'property.uientity.print_pdf',
@@ -1992,14 +1985,11 @@
                                        'value_id'                              
                => $values['id'],
                                        'value_num'                             
                => $values['num'],
                                        'error_flag'                            
        => isset($error_id)?$error_id:'',
-                                       'lang_done_statustext'                  
=> lang('Back to the list'),
-                                       'lang_save_statustext'                  
=> lang('Save the entity'),
                                        'lang_history'                          
        => lang('history'),
                                        'lang_history_help'                     
        => lang('history of this attribute'),
 
                                        'lang_history_date_statustext'  => 
lang('Enter the date for this reading'),
                                        'lang_date'                             
                => lang('date'),
-                                       'table_apply'                           
        => $table_apply,
                                        'textareacols'                          
        => 
isset($GLOBALS['phpgw_info']['user']['preferences']['property']['textareacols'])
 && $GLOBALS['phpgw_info']['user']['preferences']['property']['textareacols'] ? 
$GLOBALS['phpgw_info']['user']['preferences']['property']['textareacols'] : 40,
                                        'textarearows'                          
        => 
isset($GLOBALS['phpgw_info']['user']['preferences']['property']['textarearows'])
 && $GLOBALS['phpgw_info']['user']['preferences']['property']['textarearows'] ? 
$GLOBALS['phpgw_info']['user']['preferences']['property']['textarearows'] : 6,
                                        'tabs'                                  
                => phpgwapi_yui::tabview_generate($tabs, $active_tab),

Modified: trunk/property/setup/phpgw_no.lang
===================================================================
--- trunk/property/setup/phpgw_no.lang  2011-06-22 09:38:27 UTC (rev 7416)
+++ trunk/property/setup/phpgw_no.lang  2011-06-22 12:49:51 UTC (rev 7417)
@@ -166,6 +166,8 @@
 apartment id   property        no      leilighet ID
 applications   property        no      Applikasjoner
 apply the values       property        no      Bruke verdier
+apply  property        no      Mellomlagre
+save and stay in form  property        no      Lagre og bli stående i skjemaet
 approval       property        no      Godkjenning
 approvals      property        no      Godkjenninger
 approvals request      property        no      Anmodninger om godkjenning
@@ -1355,6 +1357,7 @@
 save the voucher       property        no      lagre bilag
 save the workorder     property        no      lagre bestilling
 save this workorder as a template for later use        property        no      
lagre denne bestillingen som mal for senere bruk
+save values and exit   property        no      Lagre verdier og gå til liste
 scale  property        no      Scale
 schedule       property        no      planlegge (tid)
 scheduled events       property        no      Planlagte oppgaver

Modified: trunk/property/templates/base/entity.xsl
===================================================================
--- trunk/property/templates/base/entity.xsl    2011-06-22 09:38:27 UTC (rev 
7416)
+++ trunk/property/templates/base/entity.xsl    2011-06-22 12:49:51 UTC (rev 
7417)
@@ -76,7 +76,7 @@
                                                <xsl:when test="mode = 'edit'">
                                                        <tr>
                                                                <td colspan = 
"2" align = "center">
-                                                                       
<xsl:apply-templates select="table_apply"/>
+                                                                       
<xsl:call-template name="table_apply"/>
                                                                </td>
                                                        </tr>
                                                </xsl:when>
@@ -316,7 +316,7 @@
                                                <table cellpadding="2" 
cellspacing="2" width="80%" align="center">
                                                        <tr height="50">
                                                                <td colspan="2" 
align = "center">
-                                                                       
<xsl:apply-templates select="table_apply"/>
+                                                                       
<xsl:call-template name="table_apply"/>
                                                                </td>
                                                        </tr>
                                                </table>
@@ -383,30 +383,31 @@
        </xsl:template>
 
 
-       <xsl:template match="table_apply">
+       <xsl:template name="table_apply" xmlns:php="http://php.net/xsl";>
                <table>
                        <tr>
                                <td valign="bottom">
-                                       <xsl:variable 
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
+                                       <xsl:variable 
name="lang_save"><xsl:value-of select="php:function('lang', 'save')" 
/></xsl:variable>
                                        <input type="submit" 
name="values[save]" value="{$lang_save}">
                                                <xsl:attribute name="title">
-                                                       <xsl:value-of 
select="lang_save_statustext"/>
+                                                       <xsl:value-of 
select="php:function('lang', 'save values and exit')" />
                                                </xsl:attribute>
                                        </input>
                                </td>
+
                                <td valign="bottom">
-                                       <xsl:variable 
name="lang_apply"><xsl:value-of select="lang_apply"/></xsl:variable>
+                                       <xsl:variable 
name="lang_apply"><xsl:value-of select="php:function('lang', 'apply')" 
/></xsl:variable>
                                        <input type="submit" 
name="values[apply]" value="{$lang_apply}">
                                                <xsl:attribute name="title">
-                                                       <xsl:value-of 
select="lang_apply_statustext"/>
+                                                       <xsl:value-of 
select="php:function('lang', 'save and stay in form')" />
                                                </xsl:attribute>
                                        </input>
                                </td>
                                <td align="right" valign="bottom">
-                                       <xsl:variable 
name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
+                                       <xsl:variable 
name="lang_cancel"><xsl:value-of select="php:function('lang', 'cancel')" 
/></xsl:variable>
                                        <input type="submit" 
name="values[cancel]" value="{$lang_cancel}">
                                                <xsl:attribute name="title">
-                                                       <xsl:value-of 
select="lang_cancel_statustext"/>
+                                                       <xsl:value-of 
select="php:function('lang', 'Back to the list')" />
                                                </xsl:attribute>
                                        </input>
                                </td>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]