Skip to content

Instantly share code, notes, and snippets.

@C47D
Created April 15, 2019 22:30
Show Gist options
  • Save C47D/198ac0d00985087180ad6517c9d2047c to your computer and use it in GitHub Desktop.
Save C47D/198ac0d00985087180ad6517c9d2047c to your computer and use it in GitHub Desktop.
CP Translate strings with arguments
/* https://github.com/adafruit/circuitpython/blob/22889ca29a9a8498fd7ba49260e988bfa5ac7011/ports/atmel-samd/common-hal/audioio/AudioOut.c#L377 */
mp_raise_ValueError_varg(translate("Sample rate too high. It must be less than %d"), max_sample_rate);
@C47D
Copy link
Author

C47D commented Apr 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment