Révision 2885

tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/OpenLocalizedWebPage.java (revision 2885)
72 72
	public static final String CONTRIB = "contrib"; //$NON-NLS-1$
73 73
	public static final String TXMUSERS = "txm-users wiki"; //$NON-NLS-1$
74 74
	public static final String MACROS = "macros"; //$NON-NLS-1$
75
	public static final String CORPORA = "corpora"; //$NON-NLS-1$
75 76

  
76 77
	/* (non-Javadoc)
77 78
	 * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
......
136 137
				return OpenBrowser.openfile(getValidURL(URL_TEXTOMETRIE+locale+"/Documentation/#txm-manual", URL_TEXTOMETRIE+"en/Documentation/#txm-manual")); //$NON-NLS-1$
137 138
			}
138 139
		} else if (SF.equals(key)) {
139
			return OpenBrowser.openfile(FILESPAGES); //$NON-NLS-1$
140
			if ("fr".equals(locale)) { //$NON-NLS-1$
141
				return OpenBrowser.openfile(FILESPAGES); 
142
			} else {
143
				return OpenBrowser.openfile(getValidURL(FILESPAGES+locale, URL_TEXTOMETRIE+"en")); //$NON-NLS-1$
144
			}
140 145
		} else if (TEXTOMETRIE_DOCS.equals(key)) {
141 146
			if ("fr".equals(locale)) { //$NON-NLS-1$
142 147
				return OpenBrowser.openfile(URL_TEXTOMETRIE+"/Documentation"); 
......
155 160
			} else {
156 161
				return OpenBrowser.openfile(getValidURL(URL_TXMMANUAL+locale, URL_TXMMANUAL)); //$NON-NLS-1$
157 162
			}
158
		} else if (PDFREFMAN.equals(key)) {
163
		}  else if (CORPORA.equals(key)) {
164
			if ("fr".equals(locale)) { //$NON-NLS-1$
165
				return OpenBrowser.openfile(FILESPAGES+"corpora"); 
166
			} else {
167
				return OpenBrowser.openfile(getValidURL(FILESPAGES+"corpora/"+locale, URL_TXMMANUAL+"corpora/en")); //$NON-NLS-1$
168
			}
169
		}else if (PDFREFMAN.equals(key)) {
159 170
			return OpenBrowser.openfile(FILESPAGES+"documentation/Manuel%20de%20TXM%200.8%20FR.pdf"); //$NON-NLS-1$ 
160 171
		} else if (BUG.equals(key)) {
161 172
			if ("fr".equals(locale)) { //$NON-NLS-1$
tmp/org.txm.rcp/plugin.xml (revision 2885)
1261 1261
                  tooltip="%command.tooltip">
1262 1262
               <parameter
1263 1263
                     name="org.txm.rcp.commands.commandParameter3"
1264
                     value="https://txm.gitpages.huma-num.fr/textometrie/files/corpora/">
1264
                     value="corpora">
1265 1265
               </parameter>
1266 1266
            </command>
1267 1267
            <command

Formats disponibles : Unified diff