Not without getting the user to specify their sex, which some people outside of French speaking countries might find strange and intrusive.
Feb 26, 2015
8
Level 11
Lang [male|female]
Hi Everybody.
Is there a way to adapt a word according to the gender of the user (male or female) within the Lang class ?
For example in french a technician is : 'Technicien' for male and 'Technicienne' for female.
Level 41
I think you can use the Laravel lang choice for this.
'job' => "{0} Technicien|{1}Technicienne",
trans_choice('filename.job', 1);
trans_choice('filename.job', 0);
1 like
Please or to participate in this conversation.