| 837 | } |
| 838 | |
| 839 | TranslatableString ProjectManager::GetHoursMinsString(int iMinutes) |
| 840 | { |
| 841 | if (iMinutes < 1) |
| 842 | // Less than a minute... |
| 843 | return XO("Less than 1 minute"); |
| 844 | |
| 845 | // Calculate |
| 846 | int iHours = iMinutes / 60; |
| 847 | int iMins = iMinutes % 60; |
| 848 | |
| 849 | auto sHours = XP( "%d hour", "%d hours", 0 )( iHours ); |
| 850 | |
| 851 | auto sMins = XP( "%d minute", "%d minutes", 0 )( iMins ); |
| 852 | |
| 853 | /* i18n-hint: A time in hours and minutes. Only translate the "and". */ |
| 854 | return XO("%s and %s.").Format( sHours, sMins ); |
| 855 | } |
| 856 | |
| 857 | // This routine will give an estimate of how many |
| 858 | // minutes of recording time we have available. |