Page 1 of 1

Translation [Solved]

PostPosted: Fri May 22, 2009 8:19 am
by silma
Hello,

I'm still working on my application, and everything works fine but ( there's always a "but" !) there're a few messages that i'd like to translate, that i'm not able to find.

Where's for exemple the "Record successfully added to relationship." ?
I've try to change the message in the "new" file but nothing happened.

Or the "Illegal input" message on the validation popup windows ?

Or juste the "see all" on each view page ?

I've tried a search inside all the xataface directory's files, but without success.

Thanks for your help, and once again, sorry for my english !

Silma

PostPosted: Thu Jul 02, 2009 6:00 am
by silma
Hello,

I found some of the words i was searching, if it can help someone :

Here's the lines to add to your "lang" file
(exemple in french)
Code: Select all
templates.Dataface_Record.LABEL_CURRENT_RECORD="Enregistrement courant"
Logged in as user  = "Connectéen tant que"
scripts.Dataface_SkinTool.LABEL_BREADCRUMB= "Vous êtes ici"
Record successfully added to relationship ="Enregistrement ajouté à  la relation '$relationship'"
scripts.Dataface_FormTool.LABEL_EDIT_DETAILS="Edition"
scripts.Dataface_QuickForm.LABEL_EDIT_DETAILS="Merci de remplir le formulaire ci dessous"
save_button_label="Enregistrer"
Login Form="Connexion"
related_find_query="Filtrer les résultats"
scripts.Dataface_ResultList.MESSAGE_FILTER_RESULTS="Filtrer les résultats"
scripts.GLOBAL.LABEL_FIND="Rechercher"
scripts.Dataface_SearchForm.LABEL_MATCH_NONE="Exclure ces valeurs de la recherche"
scripts.GLOBAL.LABEL_SHOWING="Montre"
scripts.GLOBAL.MESSAGE_RESULTS_PER_PAGE="Resultats par page"
scripts.GLOBAL.NO_RECORDS_MATCHED_REQUEST="Enerconso n'a pas trouvé de résultat correspondant à votre recherche"
scripts.GLOBAL.MESSAGE_NO_MATCH="Enerconso n'a pas trouvé de résultat correspondant à votre recherche"
Incorrect Password = "Vous avez entré une mauvaise combinaison identifiant/mot de passe. Merci de réessayer."
scripts.Dataface_RelationshipCheckboxForm.LABEL_SUBMIT="Enregistrer"
scripts.Dataface_SkinTool.LABEL_BREADCRUMB = "Vous êtes ici"
scripts.Dataface.RelatedList.toHtml.LABEL_ADD_NEW_RELATED_RECORD = "Ajouter une nouvelle entrée à $relationship"
scripts.Dataface.RelatedList.toHtml.LABEL_ADD_EXISTING_RELATED_RECORD = "Ajouter un enregistrement existant à $relationship"



The following are not in the translation tool, you have to change them in the files :

"See all" => /xataface/lib/Smarty/plugins/block.collapsible_sidebar.php

"Invalid information entered" , "Please correct this field" => /xataface/lib/HTML/QuickForm.php

"Illegal input" => /xataface/Dataface/Table.php

Display X records per page => /xataface/Dataface/ResultController.php

Illegal input for field => xataface/Dataface/Table.php


===SAVE BUTTON ===

>>xataface\Dataface\CompositeForm.php
Code: Select all
Line 152:   $this->addElement('submit','submit','Save');
change to  :   $this->addElement('submit','Save',df_translate('scripts.Dataface_RelationshipCheckboxForm.LABEL_SUBMIT', 'Save'));


>>xataface\Dataface\ExistingRelatedRecordForm.php
Code: Select all
Line 280:  
$this->addElement('submit','Save','Save');  
change to  :   $this->addElement('submit','Save',df_translate('scripts.Dataface_RelationshipCheckboxForm.LABEL_SUBMIT', 'Save'));   


>>xataface\Dataface\ShortRelatedRecordForm.php
Code: Select all
Line 347:  if ( !$firstGroup ) $this->addElement('submit','','Save');
change to : if ( !$firstGroup ) $this->addElement('submit','',df_translate('scripts.Dataface_RelationshipCheckboxForm.LABEL_SUBMIT', 'Save')); 

Line 437:   $this->addElement('submit','-Save','Save'); (change the second one only) change to :  $this->addElement('submit','-Save',df_translate('scripts.Dataface_RelationshipCheckboxForm.LABEL_SUBMIT', 'Save'));  >>xataface\Dataface\ValuelistEditorForm.php (1 hits) Line 40:   $this->addElement('submit','save','Save');




== Find/replace Form==
>> \xataface\Dataface\templates\copy_replace.html
Line 53: Add Field to update

>>xataface\actions\copy_replace.php
L31 Records successfully updated
Line 57: 'Please select
L77 to 101 : Form manual


== IMPORT Page==

>>xataface\HTML\QuickForm\optionalelement.php
Line 143: Add Value for :
Line 153: Add
Line130/13: key & value

>>xataface\Dataface\ImportForm.php
Line 224: 'Default Values'
Line 242 "Submit"

>>xataface\actions\import.php
Line 61: "Records imported successfully.\n"

>>xataface\Dataface\TableView.php
Line 889: "Records imported successfully.\n"

Re: Translation [Solved]

PostPosted: Wed Aug 10, 2011 2:08 am
by silma
List Updated with Xataface 1.3rc6