Translating departments, leave types, employment types etc are just not working. I have so far gone the lengths of enabling developer mode to make “Translatable” in every field that I’d like, uploaded a .csv file with translations etc but nothing so far is working. I’m on 12.1.5.
Can you guys please pay attention to this issue on the next release?
While at it, I’d like to add that Node.js labels need some translation capabilities as well. Specially when building “reports”. Small things like “Remove column” can’t be translated…
Thank you clarkej, I’ve attached a couple of screenshots
Specifically Sort descending, reset sorting, remove column etc can’t be translated. Only the Add Column
Then, when you create a department for example, Mill Shop, I’d like to have it shown in dual languages. I do check the box “Translatable” for the field in both customize form as well as the DocType. But it just doesn’t happen. I do clear-cache, do restart the bench etc… Even did a bench build.
Please do care for these on the next release My specifics DocTypes that are not being translated are: leave types, departments, employment types, branches
Please link to that issue record here in this thread, so all concerned can refer upvote and add their findings.
More screenshots - say full page views of each affected page - might help inform to resolve this issue.
One question is whether this is language independent or not - does a similar error occur in other languages? Whatever you can offer or find to identify that, would help too.
edit: One more suggestion: Periodically search and review the issue reports for similar related cases, so you can group together to promote your case.
Thank you ClarkeJ. Honestly, I really don’t have the time and I really hope someone too will realize these and resolve them in the near future. I would really like to help by going around every bit of the system and see which are being translated and what not, but I’m only working on the HR module of ERPNext for a client, and I better dedicate my time for the paying client at this moment.
BTW, I’ve tried all the other languages, and the issue persisted.
Thank you, I’m sure now at least a few people are paying attention to this
All but Add Column are hard coded on the client here ./apps/frappe/node_modules/frappe-datatable/src/defaults.js
Hence to find the code for Add Column, that translates that as expected (say somewhere on the server?), is key to resolving that part of the puzzle…
EDIT: To footnote re this below with the notes above
A grep search for ‘Remove Column’ and ‘Remove column’ turned up no server side code, unlike this 'Add Column search below that does - that seems to confirm your translation case observations
Thank you. I’ve grep’d the files as well previously, but didn’t want to edit the files directly. That’s when I stopped and turned to the forum for help
$(document).ready(function() {
setTimeout(() => {
var elements = document.getElementsByClassName("dt-dropdown__list-item");
for (var i = 0, l = elements.length; i < l; i++) {
elements[i].innerHTML = elements[i].innerHTML.replace(elements[i].innerHTML, function (x) {
return __(x);
});
}
}, 2000);
});