Use name instead of ID

This commit is contained in:
Johannes Marbach 2021-09-19 13:09:24 +02:00
parent aa74bcf04f
commit 00fe6cafcc
4 changed files with 5 additions and 5 deletions

View file

@ -8,7 +8,7 @@
* Layout: US English - generated from us
**/
static const char * const name_us = "us";
static const char * const name_us = "US English";
/* Layer: Lowercase letters - generated from base */
@ -153,7 +153,7 @@ static const sq2lv_layer_t layers_us[] = {
* Layout: German - generated from de
**/
static const char * const name_de = "de";
static const char * const name_de = "German";
/* Layer: Lowercase letters - generated from base */

View file

@ -9,7 +9,7 @@
* Layout: US English (Terminal) - generated from terminal/us
**/
static const char * const name_terminal_us = "terminal/us";
static const char * const name_terminal_us = "US English (Terminal)";
/* Layer: Lowercase letters - generated from base */

View file

@ -8,7 +8,7 @@
* Layout: US English - generated from us
**/
static const char * const name_us = "us";
static const char * const name_us = "US English";
/* Layer: Lowercase letters - generated from base */

View file

@ -643,7 +643,7 @@ if __name__ == '__main__':
c_builder.add_section_comment(f'Layout: {layout_id_to_layout_name(layout_id)} - generated from {layout_id}')
c_builder.add_line()
c_builder.add_line(f'static const char * const name_{layout_identifier} = "{layout_id}";')
c_builder.add_line(f'static const char * const name_{layout_identifier} = "{layout_id_to_layout_name(layout_id)}";')
c_builder.add_line()
layer_identifiers = []