Révision 2847
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/OpenLocalizedWebPage.java (revision 2847) | ||
|---|---|---|
| 118 | 118 |
if (idx > 0) version = version.substring(0, idx); // remove the "qualifier" part |
| 119 | 119 |
|
| 120 | 120 |
String locale = Locale.getDefault().getLanguage(); |
| 121 |
|
|
| 121 |
|
|
| 122 | 122 |
if (TEXTOMETRIE.equals(key)) {
|
| 123 |
return OpenBrowser.openfile(getValidURL(URL_TEXTOMETRIE+locale, URL_TEXTOMETRIE)); //$NON-NLS-1$ |
|
| 123 |
if ("fr".equals(locale)) { //$NON-NLS-1$
|
|
| 124 |
return OpenBrowser.openfile(URL_TEXTOMETRIE); |
|
| 125 |
} else {
|
|
| 126 |
return OpenBrowser.openfile(getValidURL(URL_TEXTOMETRIE+locale, URL_TEXTOMETRIE)); //$NON-NLS-1$ |
|
| 127 |
} |
|
| 124 | 128 |
} else if (FAQ.equals(key)) {
|
| 125 | 129 |
return OpenBrowser.openfile("https://groupes.renater.fr/wiki/txm-users/public/faq"); //$NON-NLS-1$
|
| 126 | 130 |
} else if (CONTRIB.equals(key)) {
|
| ... | ... | |
| 130 | 134 |
} else if (SF.equals(key)) {
|
| 131 | 135 |
return OpenBrowser.openfile(FILESPAGES); //$NON-NLS-1$ |
| 132 | 136 |
} else if (TEXTOMETRIE_DOCS.equals(key)) {
|
| 133 |
return OpenBrowser.openfile(getValidURL(URL_TEXTOMETRIE+locale+"/Documents-référence", URL_TEXTOMETRIE+"/Documents-référence")); //$NON-NLS-1$ |
|
| 137 |
if ("fr".equals(locale)) { //$NON-NLS-1$
|
|
| 138 |
return OpenBrowser.openfile(URL_TEXTOMETRIE+"/Documents-référence"); |
|
| 139 |
} else {
|
|
| 140 |
return OpenBrowser.openfile(getValidURL(URL_TEXTOMETRIE+locale+"/Documents-référence", URL_TEXTOMETRIE+"/Documents-référence")); //$NON-NLS-1$ |
|
| 141 |
} |
|
| 134 | 142 |
} else if (TREETAGGER.equals(key)) {
|
| 135 |
return OpenBrowser.openfile(getValidURL(URL_TEXTOMETRIE+locale+"/InstallTreeTagger/", URL_TEXTOMETRIE+"InstallTreeTagger")); //$NON-NLS-1$ //$NON-NLS-2$ |
|
| 143 |
if ("fr".equals(locale)) { //$NON-NLS-1$
|
|
| 144 |
return OpenBrowser.openfile(URL_TEXTOMETRIE+"InstallTreeTagger"); |
|
| 145 |
} else {
|
|
| 146 |
return OpenBrowser.openfile(getValidURL(URL_TEXTOMETRIE+locale+"/InstallTreeTagger/", URL_TEXTOMETRIE+"InstallTreeTagger")); //$NON-NLS-1$ //$NON-NLS-2$ |
|
| 147 |
} |
|
| 136 | 148 |
} else if (REFMAN.equals(key)) {
|
| 137 |
return OpenBrowser.openfile(getValidURL(URL_TXMMANUAL+locale, URL_TXMMANUAL)); //$NON-NLS-1$ |
|
| 149 |
if ("fr".equals(locale)) { //$NON-NLS-1$
|
|
| 150 |
return OpenBrowser.openfile(URL_TXMMANUAL); |
|
| 151 |
} else {
|
|
| 152 |
return OpenBrowser.openfile(getValidURL(URL_TXMMANUAL+locale, URL_TXMMANUAL)); //$NON-NLS-1$ |
|
| 153 |
} |
|
| 138 | 154 |
} else if (PDFREFMAN.equals(key)) {
|
| 139 | 155 |
return OpenBrowser.openfile(FILESPAGES+"documentation/Manuel%20de%20TXM%200.8%20FR.pdf"); //$NON-NLS-1$ |
| 140 | 156 |
} else if (BUG.equals(key)) {
|
| 141 |
if (locale.equals("fr")) { //$NON-NLS-1$
|
|
| 157 |
if ("fr".equals(locale)) { //$NON-NLS-1$
|
|
| 142 | 158 |
return OpenBrowser.openfile("https://groupes.renater.fr/wiki/txm-users/public/retours_de_bugs_logiciel"); //$NON-NLS-1$
|
| 143 | 159 |
} else {
|
| 144 | 160 |
return OpenBrowser.openfile("https://sourceforge.net/p/txm/feature-requests/?source=navbar"); //$NON-NLS-1$
|
| 145 | 161 |
} |
| 146 | 162 |
} else if (FEATURE.equals(key)) {
|
| 147 |
if (locale.equals("fr")) { //$NON-NLS-1$
|
|
| 163 |
if ("fr".equals(locale)) { //$NON-NLS-1$
|
|
| 148 | 164 |
return OpenBrowser.openfile("https://groupes.renater.fr/wiki/txm-users/public/demande_de_fonctionnalites"); //$NON-NLS-1$
|
| 149 | 165 |
} else {
|
| 150 | 166 |
return OpenBrowser.openfile("http://sourceforge.net/tracker/?group_id=247041&atid=1190851"); //$NON-NLS-1$
|
Formats disponibles : Unified diff