Bonjour,
Je me suis servie de ce tuto : ICI
Mais j'ai une erreur :
J'ai 3 fichiers resx :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 namespace Consultationbis { public partial class F_ConsultSearch : Form { public CultureInfo EnglishCulture = new CultureInfo("en-US"); public CultureInfo FrenchCulture = new CultureInfo("fr-FR"); private System.Resources.ResourceManager RM = null; public F_ConsultSearch(Classes.Surveillant surveillant) { this.oSurveillant = surveillant; InitializeComponent(); } private void F_ConsultSearch_Load(object sender, EventArgs e) { RM = new System.Resources.ResourceManager("Consultationbis.ConsultSearch", typeof(F_ConsultSearch).Assembly); System.Threading.Thread.CurrentThread.CurrentUICulture = EnglishCulture; label1.Text = RM.GetString("label1"); //Could not find any resources appropriate for the specified culture or the neutral culture. //Make sure "Consultationbis.ConsultSearch.resources" was correctly embedded or linked into assembly "Consultationbis" at compile time, // or that all the satellite assemblies required are loadable and fully signed. }
F_ConsultSearch.en.resx
F_ConsultSearch.fr.resx
F_ConsultSearch.resx
J'ai ajouté une ligne (chaine) dans en.resx et dans fr.resx avec :
label1 | Hi
label1 | salut
Merci d'avance
Partager