New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crowdin: represent whitespace in code instead of in string #4557
Crowdin: represent whitespace in code instead of in string #4557
Conversation
d196d4f
to
d6ec0c8
Compare
OK, you mean the commit to delete a few whitespace in ArchStairs.py right? |
16fcd39
to
4c0c471
Compare
@yorikvanhavre when review is complete, will this go in to the 0.19 or 0.20 ? |
@chennes can you review some of these. I know some of them are wrong. |
4c0c471
to
0c99c23
Compare
@yorikvanhavre can you review this and after merge push to crowdin (since there are a lot of errors fixed + translations now available in the StartWB (see #4606 ) |
a79926e
to
fedb8d3
Compare
Travis is complaining about https://travis-ci.org/github/FreeCAD/FreeCAD/jobs/762361197#L7550-L7563 |
fedb8d3
to
b5fcbaf
Compare
Ok, fixes pass CI. Please do final review |
@wwmayer how would you prefer I squash this PR ? |
I would prefer to merge these things after 0.19 is fully out, in case we need to pull translations once more. If this PR is in (and the strings have been sent to crowdin), the translations we get from crowdin will differ from the 0.19 sources... |
@yorikvanhavre feel free to merge it when you think the time is right |
@@ -3860,7 +3860,7 @@ def export(objectslist, filename, nospline=False, lwPoly=False): | |||
filename = filename.encode("utf8") | |||
dxf.saveas(filename) | |||
|
|||
FCC.PrintMessage("successfully exported " + filename + "\n") | |||
FCC.PrintMessage("successfully exported" + " " + filename + "\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to add a translate() here too I guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yorikvanhavre there are no other translate()
's in the PrintMessage()
in the rest of this file so maybe that would be a separate PR?
@@ -269,4 +269,4 @@ def export(exportList,filename): | |||
csg.write("}\n}\n") | |||
# close file | |||
csg.close() | |||
FreeCAD.Console.PrintMessage("successfully exported "+filename) | |||
FreeCAD.Console.PrintMessage("successfully exported" + " " + filename) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
first part should go into a translate()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yorikvanhavre there are no other translate()'s in the PrintMessage() in the rest of this file so maybe that would be a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure!
@@ -149,7 +149,7 @@ QString checkStatusToString(const int &index) | |||
} | |||
if (index > 33 || index < 0) | |||
{ | |||
QString message(QObject::tr("Out Of Enum Range: ")); | |||
QString message(QObject::tr("Out Of Enum Range:") + QString::fromLatin1(" ")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO if you touch not only string contents but also code itself, you should not skip CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair enough
<location filename="../../DlgStartPreferences.ui" line="289"/> | ||
<source>If this is checked, if a style sheet is specified in General preferences, it will be used and override the colors below</source> | ||
<translation type="unfinished"></translation> | ||
</message> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is a ghost translation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mention it in the commit message:
For some reason updatets.py is not successfully removing obsolete translations. This is a long standing issue. The workaround is to manually remove them from the .ts file.
ref: https://forum.freecadweb.org/viewtopic.php?f=21&t=51825&p=483474#p482519
crowdin: https://crowdin.com/translate/freecad/7254/en-pl?filter=basic&value=0#6572886
If there are no other comments, this PR should be ready to go |
Removing possible whitespace from strings lead to more accurate translations
For some reason updatets.py is not successfully removing obsolete translations. This is a long standing issue. The workaround is to manually remove them from the .ts file.
For some reason updatets.py is not successfully removing obsolete translations. This is a long standing issue. The workaround is to manually remove them from the .ts file. ref: https://forum.freecadweb.org/viewtopic.php?f=21&t=51825&p=483474#p482519 crowdin: https://crowdin.com/translate/freecad/7254/en-pl?filter=basic&value=0#6572886
b5fcbaf
to
1388db3
Compare
Removing possible whitespace from strings lead to more accurate translations