Skip to content

Commit

Permalink
Workaround for unneeded suffix: Just use the same value.
Browse files Browse the repository at this point in the history
The reason for this workaround is that at the method that decides if the suffix should be applied, the information about the time unit is not available. So it would either need to do some string magic and explicitly exclude the "TimeSpanHumanize_MultipleDays" resource key from adding the postfix, or most of the `TimeSpan` formatting code would need to be rewriten for Croatian or modified for all languages to support Croatian. Neither seems reasonable for a quick change.
  • Loading branch information
hangy committed Nov 30, 2016
1 parent 002cc7b commit 152a119
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Humanizer/Properties/Resources.hr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@
<data name="TimeSpanHumanize_MultipleDays" xml:space="preserve">
<value>{0} dana</value>
</data>
<data name="TimeSpanHumanize_MultipleDays_DualTrialQuadral" xml:space="preserve">
<value>{0} dana</value>
</data>
<data name="TimeSpanHumanize_MultipleHours" xml:space="preserve">
<value>{0} sati</value>
</data>
Expand Down Expand Up @@ -276,4 +279,4 @@
<data name="DateHumanize_SingleYearFromNow" xml:space="preserve">
<value>za godinu dana</value>
</data>
</root>
</root>

0 comments on commit 152a119

Please sign in to comment.