Révision 3756
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/messages/messages_fr.properties (revision 3756) | ||
---|---|---|
740 | 740 |
xmlTagNameThatEncodesWords=Nom de la balise XML qui encode les mots |
741 | 741 |
XMLTXMFilesExportedInP0=Fichiers XML-TXM exportés dans {0} |
742 | 742 |
youMustSelectAtLeast2Comparators=Il faut sélectionner au moins deux comparateurs |
743 |
YouNeedToSetAsManyPercentSPrintfMarksAsSelectedProperties=Vous avez besoin d'autant de spécificateurs de format %s que de propriétés sélectionnées. |
|
743 |
YouNeedToSetAsManyPercentSPrintfMarksAsSelectedProperties=Tapez votre pattern en insérant "%s" là où chaque propriété listée ci-dessous doit être affichée (autant de "%s" que de propriété à afficher).\nPar exemple, le pattern "%s, %s %s" associé à la liste de propriétés "text_id,div_type,div_n" affichera :\n- "Mon roman, chapitre 1"\n- "Mon roman, chapitre 2"\n- etc. |
|
744 |
PropertiesOfTheCompoundFormForStructurePropertiesAndOfTheSimpleFormForWordProperties=Propriétés de la forme composée "text_id" pour les propriétés de structures, et de la forme simple "id" pour les propriétés de mots. |
|
744 | 745 |
YouReGoingToLostThoseModificationsIfNotAlreadyExportedContinue=Vous allez perdre vos modifications manuelles du résultat. Continuer ? |
745 | 746 |
zoomInAmpoutColonMouseWheelORShiftPlusRightMousePlusDrag=\ Zoom +/- \: Roulette OU Maj + Clic Droit + Glisser |
746 | 747 |
zoomToSelectionColonCtrlPlusLeftMousePlusdrag=\ Zoomer sur la sélection \: Ctrl + Clic Gauche + Glisser |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/messages/TXMUIMessages.java (revision 3756) | ||
---|---|---|
1498 | 1498 |
public static String textLanguage; |
1499 | 1499 |
|
1500 | 1500 |
public static String selectEngine; |
1501 |
|
|
1502 |
public static String PropertiesOfTheCompoundFormForStructurePropertiesAndOfTheSimpleFormForWordProperties; |
|
1501 | 1503 |
|
1502 | 1504 |
static { |
1503 | 1505 |
// initialize resource bundle |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/messages/messages.properties (revision 3756) | ||
---|---|---|
739 | 739 |
xmlTagNameThatEncodesWords=XML tag name that encodes words |
740 | 740 |
XMLTXMFilesExportedInP0=XML-TXM files exported in {0} |
741 | 741 |
youMustSelectAtLeast2Comparators=You must select at least 2 comparators |
742 |
YouNeedToSetAsManyPercentSPrintfMarksAsSelectedProperties=You need as many %s format specifiers as properties selected. |
|
742 |
YouNeedToSetAsManyPercentSPrintfMarksAsSelectedProperties=Type your pattern by inserting "%s" where each property listed below should be displayed (as many "%s" as there are properties to display).\nFor example, the pattern "%s, %s %s" associated with the property list "text_id,div_type,div_n" will display :\n- "My novel, chapter 1"\n- "My novel, chapter 2"\n- etc. |
|
743 |
PropertiesOfTheCompoundFormForStructurePropertiesAndOfTheSimpleFormForWordProperties=Properties of the compound form "text_id" for structure properties, and of the simple form "id" for word properties. |
|
743 | 744 |
YouReGoingToLostThoseModificationsIfNotAlreadyExportedContinue=You're going to lose your manual modifications of the result. Continue? |
744 | 745 |
zoomInAmpoutColonMouseWheelORShiftPlusRightMousePlusDrag=\ Zoom +/-\: Mouse wheel OR Shift + Right Mouse + Drag |
745 | 746 |
zoomToSelectionColonCtrlPlusLeftMousePlusdrag=\ Zoom to selection\: Ctrl + Left Mouse + Drag |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/CommandsSection.java (revision 3756) | ||
---|---|---|
39 | 39 |
|
40 | 40 |
public CommandsSection(ImportFormEditor editor, FormToolkit toolkit2, ScrolledForm form2, Composite parent, int style) { |
41 | 41 |
|
42 |
super(editor, toolkit2, form2, parent, style, "commands"); |
|
42 |
super(editor, toolkit2, form2, parent, style, "commands"); //$NON-NLS-1$
|
|
43 | 43 |
|
44 | 44 |
this.section.setText(TXMUIMessages.commands); |
45 | 45 |
TableWrapLayout layout = new TableWrapLayout(); |
... | ... | |
76 | 76 |
TableWrapData gdata = getTextGridData(); |
77 | 77 |
structLimitsText.setLayoutData(gdata); |
78 | 78 |
|
79 |
Label tmp2Label = toolkit.createLabel(sectionClient, "Default References"); |
|
79 |
Label tmp2Label = toolkit.createLabel(sectionClient, "Default References");
|
|
80 | 80 |
tmp2Label.setToolTipText("The default references displayed in the References column."); |
81 | 81 |
tmp2Label.setLayoutData(getSectionGridData(2)); |
82 | 82 |
|
83 |
Label tmp3Label = toolkit.createLabel(sectionClient, " Pattern"); |
|
84 |
tmp3Label.setToolTipText("Reference pattern string in the printf format with '%s' markers.");
|
|
83 |
Label tmp3Label = toolkit.createLabel(sectionClient, " Pattern");
|
|
84 |
tmp3Label.setToolTipText(TXMUIMessages.YouNeedToSetAsManyPercentSPrintfMarksAsSelectedProperties);
|
|
85 | 85 |
tmp3Label.setLayoutData(getLabelGridData()); |
86 | 86 |
|
87 | 87 |
referencePatternText = toolkit.createText(sectionClient, "", SWT.BORDER); //$NON-NLS-1$ |
88 |
referencePatternText.setToolTipText("Reference pattern string in the printf format with '%s' markers.");
|
|
88 |
referencePatternText.setToolTipText(TXMUIMessages.YouNeedToSetAsManyPercentSPrintfMarksAsSelectedProperties);
|
|
89 | 89 |
TableWrapData gdata2 = getTextGridData(); |
90 | 90 |
referencePatternText.setLayoutData(gdata2); |
91 | 91 |
|
92 |
Label tmp4Label = toolkit.createLabel(sectionClient, " Properties"); |
|
93 |
tmp4Label.setToolTipText("Comma separated list of CQP word properties or structures properties.");
|
|
92 |
Label tmp4Label = toolkit.createLabel(sectionClient, " Properties"); //$NON-NLS-1$
|
|
93 |
tmp4Label.setToolTipText(TXMUIMessages.PropertiesOfTheCompoundFormForStructurePropertiesAndOfTheSimpleFormForWordProperties);
|
|
94 | 94 |
tmp4Label.setLayoutData(getLabelGridData()); |
95 | 95 |
|
96 | 96 |
referencePatternProperties = toolkit.createText(sectionClient, "", SWT.BORDER); //$NON-NLS-1$ |
97 |
referencePatternProperties.setToolTipText("Comma separated list of CQP word properties or structures properties.");
|
|
97 |
referencePatternProperties.setToolTipText(TXMUIMessages.PropertiesOfTheCompoundFormForStructurePropertiesAndOfTheSimpleFormForWordProperties);
|
|
98 | 98 |
TableWrapData gdata3 = getTextGridData(); |
99 | 99 |
referencePatternProperties.setLayoutData(gdata3); |
100 | 100 |
} |
101 | 101 |
|
102 | 102 |
@Override |
103 | 103 |
public void updateFields(Project project) { |
104 |
CorpusCommandPreferences concPrefs = project.getCommandPreferences("concordance"); |
|
104 |
CorpusCommandPreferences concPrefs = project.getCommandPreferences("concordance"); //$NON-NLS-1$
|
|
105 | 105 |
|
106 |
if (concPrefs.get("context_limits") != null) { |
|
107 |
structLimitsText.setText(concPrefs.get("context_limits")); |
|
106 |
if (concPrefs.get("context_limits") != null) { //$NON-NLS-1$
|
|
107 |
structLimitsText.setText(concPrefs.get("context_limits")); //$NON-NLS-1$
|
|
108 | 108 |
} |
109 | 109 |
else { |
110 | 110 |
structLimitsText.setText("text"); // TODO use the concordance preferences instead of hardcoding 'text' |
111 | 111 |
} |
112 | 112 |
|
113 |
if (concPrefs.get("view_reference_pattern") != null) { |
|
114 |
String gsonString = concPrefs.get("view_reference_pattern"); |
|
113 |
if (concPrefs.get("view_reference_pattern") != null) { //$NON-NLS-1$
|
|
114 |
String gsonString = concPrefs.get("view_reference_pattern"); //$NON-NLS-1$
|
|
115 | 115 |
if (ReferencePattern.isGsonString(gsonString)) { |
116 | 116 |
referencePatternText.setText(ReferencePattern.fromGSonToPattern(gsonString)); |
117 | 117 |
referencePatternProperties.setText(StringUtils.join(ReferencePattern.fromGSonToPropertyNames(gsonString), ",")); |
... | ... | |
123 | 123 |
} |
124 | 124 |
} |
125 | 125 |
else { |
126 |
if ("txt".equals(editor.getImportName())) { |
|
127 |
referencePatternText.setText("text_id,l_n"); |
|
128 |
referencePatternProperties.setText("%s, %s"); |
|
126 |
if ("txt".equals(editor.getImportName())) { //$NON-NLS-1$
|
|
127 |
referencePatternText.setText("text_id,l_n"); //$NON-NLS-1$
|
|
128 |
referencePatternProperties.setText("%s, %s"); //$NON-NLS-1$
|
|
129 | 129 |
} else { |
130 |
referencePatternText.setText(""); |
|
131 |
referencePatternProperties.setText(""); |
|
130 |
referencePatternText.setText(""); //$NON-NLS-1$
|
|
131 |
referencePatternProperties.setText(""); //$NON-NLS-1$
|
|
132 | 132 |
} |
133 | 133 |
} |
134 | 134 |
} |
... | ... | |
136 | 136 |
@Override |
137 | 137 |
public boolean saveFields(Project project) { |
138 | 138 |
if (this.section != null && !section.isDisposed()) { |
139 |
CorpusCommandPreferences concPrefs = project.getCommandPreferences("concordance"); |
|
140 |
concPrefs.set("context_limits_type", "list"); |
|
139 |
CorpusCommandPreferences concPrefs = project.getCommandPreferences("concordance"); //$NON-NLS-1$
|
|
140 |
concPrefs.set("context_limits_type", "list"); //$NON-NLS-1$ $NON-NLS-2$
|
|
141 | 141 |
concPrefs.set("context_limits", structLimitsText.getText()); |
142 | 142 |
|
143 |
concPrefs.set("view_reference_pattern", |
|
143 |
concPrefs.set("view_reference_pattern", //$NON-NLS-1$
|
|
144 | 144 |
ReferencePattern.referenceToString( |
145 |
Arrays.asList(referencePatternProperties.getText().trim().split(",")), |
|
145 |
Arrays.asList(referencePatternProperties.getText().trim().split(",")), //$NON-NLS-1$
|
|
146 | 146 |
referencePatternText.getText()) |
147 | 147 |
); |
148 | 148 |
} |
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/ReferencePatternSelectionDialog.java (revision 3756) | ||
---|---|---|
87 | 87 |
if (pattern != null) { |
88 | 88 |
patternText.setText(pattern); |
89 | 89 |
} |
90 |
patternText.setToolTipText(TXMUIMessages.sprintf_pattern_tooltip);
|
|
90 |
patternText.setToolTipText(TXMUIMessages.YouNeedToSetAsManyPercentSPrintfMarksAsSelectedProperties);
|
|
91 | 91 |
GridData gdata = new GridData(SWT.WRAP, SWT.WRAP, true, true); |
92 | 92 |
gdata.widthHint = 200; |
93 | 93 |
gdata.minimumWidth = 50; |
Formats disponibles : Unified diff