Révision 1345
tmp/org.txm.rcp/src/main/java/org/txm/rcp/actions/CreatePartitionDialog.java (revision 1345) | ||
---|---|---|
218 | 218 |
} |
219 | 219 |
structuralUnitsFinal = new ArrayList<StructuralUnit>(); |
220 | 220 |
for (StructuralUnit unit : structuralUnits) { |
221 |
if (unit.getName().equals("txmcorpus")) continue; // ignore txmcorpus structure |
|
221 |
if (unit.getName().equals("txmcorpus")) continue; // ignore txmcorpus structure //$NON-NLS-1$
|
|
222 | 222 |
|
223 | 223 |
if (unit.getOrderedProperties() != null |
224 | 224 |
&& unit.getOrderedProperties().size() != 0) { |
... | ... | |
398 | 398 |
* property.getName().equals("base") || //$NON-NLS-1$ |
399 | 399 |
* property.getName().equals("project")))) //$NON-NLS-1$ |
400 | 400 |
*/ |
401 |
if (selectedStructuralUnit.getName().equals("text") && |
|
402 |
(property.getName().equals("project") || property.getName().equals("base"))) continue; // ignore technical properties |
|
401 |
if (selectedStructuralUnit.getName().equals("text") && //$NON-NLS-1$
|
|
402 |
(property.getName().equals("project") || property.getName().equals("base"))) continue; // ignore technical properties //$NON-NLS-1$ //$NON-NLS-2$
|
|
403 | 403 |
propertyCombo.add(property.getName()); |
404 | 404 |
} |
405 | 405 |
if (propertyCombo.getItemCount() > 0) { |
... | ... | |
498 | 498 |
{ |
499 | 499 |
String name = "partition"+(this.corpus.getPartitions().size()+1); //$NON-NLS-1$ |
500 | 500 |
nameText.setText(name); |
501 |
System.out.println(TXMUIMessages.noPartitionNameWasSpecifiedTheNameIsP0);
|
|
501 |
System.out.println(TXMCoreMessages.bind(TXMUIMessages.noPartitionNameWasSpecifiedTheNameIsP0, name));
|
|
502 | 502 |
} |
503 | 503 |
else if (isAssistedSelected) |
504 | 504 |
{ |
505 | 505 |
String name = this.corpus.getName()+"_"+compositeForAssisted.getProperty().getFullName(); //$NON-NLS-1$ |
506 | 506 |
nameText.setText(name); |
507 |
System.out.println(TXMUIMessages.noPartitionNameWasSpecifiedTheNameIsP0);
|
|
507 |
System.out.println(TXMCoreMessages.bind(TXMUIMessages.noPartitionNameWasSpecifiedTheNameIsP0, name));
|
|
508 | 508 |
} |
509 | 509 |
//return; |
510 | 510 |
} |
... | ... | |
548 | 548 |
*/ |
549 | 549 |
public StructuralUnit getStructuralUnit() { |
550 | 550 |
if (isAdvancedSelected()) |
551 |
throw new IllegalStateException( |
|
552 |
TXMUIMessages.cannotAskForTheSimpleTabWhenTheUserHasSelectedTheAdvancedTab); |
|
551 |
throw new IllegalStateException(TXMUIMessages.cannotAskForTheSimpleTabWhenTheUserHasSelectedTheAdvancedTab); |
|
553 | 552 |
return selectedStructuralUnit; |
554 | 553 |
} |
555 | 554 |
|
... | ... | |
560 | 559 |
*/ |
561 | 560 |
public StructuralUnitProperty getStructuralUnitProperty() { |
562 | 561 |
if (isAdvancedSelected()) |
563 |
throw new IllegalStateException( |
|
564 |
TXMUIMessages.cannotAskForTheSimpleTabWhenTheUserHasSelectedTheAdvancedTab); |
|
562 |
throw new IllegalStateException(TXMUIMessages.cannotAskForTheSimpleTabWhenTheUserHasSelectedTheAdvancedTab); |
|
565 | 563 |
return selectedStructuralUnitProperty; |
566 | 564 |
} |
567 | 565 |
|
... | ... | |
572 | 570 |
*/ |
573 | 571 |
public List<String> getQueries() { |
574 | 572 |
if (!isAdvancedSelected()) |
575 |
throw new IllegalStateException( |
|
576 |
TXMUIMessages.cannotAskForTheSimpleTabWhenTheUserHasSelectedTheAdvancedTab); |
|
573 |
throw new IllegalStateException(TXMUIMessages.cannotAskForTheSimpleTabWhenTheUserHasSelectedTheAdvancedTab); |
|
577 | 574 |
return queriesString; |
578 | 575 |
} |
579 | 576 |
|
... | ... | |
650 | 647 |
for (Text t: partNames) { |
651 | 648 |
String name = t.getText().trim(); |
652 | 649 |
if (name.length() == 0) |
653 |
name = TXMUIMessages.part+count++;
|
|
650 |
name = TXMUIMessages.part + count++; //$NON-NLS-1$
|
|
654 | 651 |
values.add(name); |
655 | 652 |
} |
656 | 653 |
return values; |
tmp/org.txm.rcp/src/main/java/org/txm/rcp/messages/messages_ru.properties (revision 1345) | ||
---|---|---|
259 | 259 |
|
260 | 260 |
errorDDotSubcorpusWasNotCreated = ** Ошибка: подкорпус не был создан |
261 | 261 |
|
262 |
errorDDotThePartitionWasNotCreated = ** Ошибка: распределение не создано |
|
262 |
errorDDotThePartitionWasNotCreated = ** Ошибка: распределение не создано.
|
|
263 | 263 |
|
264 | 264 |
errorDuringParametersInitialisation = N/A_Error during parameters initialisation |
265 | 265 |
|
... | ... | |
505 | 505 |
|
506 | 506 |
noPartWasDefined = Не задана ни одна часть |
507 | 507 |
|
508 |
noPartitionNameWasSpecifiedTheNameIsP0 = Имя распределения не вводилось. Автоматическое имя: {0} |
|
508 |
noPartitionNameWasSpecifiedTheNameIsP0 = Имя распределения не вводилось. Автоматическое имя: {0}.
|
|
509 | 509 |
|
510 | 510 |
noPreviousText = Нет предыдущего текста |
511 | 511 |
|
tmp/org.txm.rcp/src/main/java/org/txm/rcp/messages/messages_fr.properties (revision 1345) | ||
---|---|---|
285 | 285 |
|
286 | 286 |
errorDDotCorporaDirectoryDoesntExistDDot = ** Erreur: le dossier 'corpora' n'existe pas : |
287 | 287 |
|
288 |
errorDDotDeleteReturnedFalse = ** Erreur lors de la suppression.
|
|
288 |
errorDDotDeleteReturnedFalse = ** Erreur lors de la suppression |
|
289 | 289 |
|
290 | 290 |
errorDDotElementNotRegistered = ** Erreur : élément non enregistré |
291 | 291 |
|
... | ... | |
299 | 299 |
|
300 | 300 |
errorDDotSubcorpusWasNotCreated = ** Erreur : le sous-corpus n'a pas été créé |
301 | 301 |
|
302 |
errorDDotThePartitionWasNotCreated = ** Erreur : la partition n'a pas été créé |
|
302 |
errorDDotThePartitionWasNotCreated = ** Erreur : la partition n'a pas été créé.
|
|
303 | 303 |
|
304 | 304 |
errorDuringParametersInitialisation = Erreur lors de l'initialisation des paramètres |
305 | 305 |
|
... | ... | |
571 | 571 |
|
572 | 572 |
noPartWasDefined = Aucune partie définie |
573 | 573 |
|
574 |
noPartitionNameWasSpecifiedTheNameIsP0 = Le nom de la partition n''a pas été précisé. Le nom est {0}
|
|
574 |
noPartitionNameWasSpecifiedTheNameIsP0 = Le nom de la partition n''a pas été précisé. Le nom est : {0}.
|
|
575 | 575 |
|
576 | 576 |
noPreviousText = Pas de texte précédent |
577 | 577 |
|
tmp/org.txm.rcp/src/main/java/org/txm/rcp/messages/messages.properties (revision 1345) | ||
---|---|---|
313 | 313 |
|
314 | 314 |
errorDDotSubcorpusWasNotCreated = ** Error: subcorpus was not created |
315 | 315 |
|
316 |
errorDDotThePartitionCreatedHasNoPart = Error: the partition created has no part |
|
316 |
errorDDotThePartitionCreatedHasNoPart = Error: the partition created has no part.
|
|
317 | 317 |
|
318 |
errorDDotThePartitionWasNotCreated = ** Error: the partition was not created |
|
318 |
errorDDotThePartitionWasNotCreated = ** Error: the partition was not created.
|
|
319 | 319 |
|
320 | 320 |
errorDDotThisPartitionHasNoPart = Error: this partition has no part. |
321 | 321 |
|
... | ... | |
625 | 625 |
|
626 | 626 |
noPartWasDefined = No part was defined |
627 | 627 |
|
628 |
noPartitionNameWasSpecifiedTheNameIsP0 = No partition name was specified. The name is {0}
|
|
628 |
noPartitionNameWasSpecifiedTheNameIsP0 = No partition name was specified. The name is: {0}.
|
|
629 | 629 |
|
630 | 630 |
noPreviousText = No previous text |
631 | 631 |
|
Formats disponibles : Unified diff