Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid breaking the build of yast2.rpm (bsc#1130822)
If /usr/share/YaST2/locale does not exist (eg. during the building of yast2.rpm) FastGettext will complain. So in that case bail out of `textdomain` and `_`+friends. Here's how it broke without this fix: +Log No textdomain configured in Yast::CommandLineClass, cannot translate "Print the help for this module" The log line *appears* because it is now reported at CommandLine.rb (previously i18n.rb) which matches the "testedfiles" filter of the testsuite. The error *happens* the "textdomain" method returns early before remembering its argument.
- Loading branch information