MCPcopy Create free account
hub / github.com/audacity/audacity / GetHoursMinsString

Method GetHoursMinsString

src/ProjectManager.cpp:839–855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837}
838
839TranslatableString 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.

Callers 1

OnOKMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected