I know that these two words get automatically translated, due to the browser language. But my HTML is not doing that.
HTML:
<p>
<label for="id_company_logo">
Company Logo:
</label>
<input type="file" name="company_logo" id="id_company_logo" />
</p>
It is generated from following "form" code of django
:
company_logo = forms.ImageField(label=_('Company Logo'),required=False, error_messages = {'invalid':_("Image files only")}, widget=forms.FileInput)
Am I doing anything wrong? I searched around for some time now, but I had absolutely no luck.
Thanks in advance.
This problem was disscused several times on Stackoverflow.
Here are the articles:
How to change the button text of input type=“file” ?
Labeling file upload button
Change default text in input type=“file”?
But this is a great article.
Here you can find a solution to your problem.