-
Notifications
You must be signed in to change notification settings - Fork 17
Added monthly translations #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
84db44f
b477cec
eb94da1
7f8003d
b88f4e2
a16eed2
719677b
c703e30
08ff4cf
9bc24f3
5942ff2
9052397
053498d
aeb2046
8431fb5
03706c9
95f3378
4385c70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -166,4 +166,4 @@ public function plot_specific_start( $p_unique_id, $p_last_dev_day, $p_min_date, | |
| </tr> | ||
| <?php | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,10 +88,22 @@ function print_plugin_enum_string_option_list( $p_enum_name, $p_val = 0 ) { | |
| foreach ( $t_enum_values as $t_key => $t_value ) { | ||
| echo '<option value="' . $t_key . '"'; | ||
| check_selected( $p_val, $t_key ); | ||
| echo '>' . $t_value . '</option>'; | ||
| echo '>' . plugin_get_enum_element ( $p_enum_name, $t_key ) . '</option>'; | ||
| } | ||
| } | ||
|
|
||
| function print_plugin_enum_string_selected_value( $p_enum_name, $p_val = 0 ) { | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this function used anywhere ? Can't find any references - at least not in this master branch, perhaps you use it in other branches of yours ?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Vincens, I'm using it in a peace of code that is not still pushed Regards, 2013/7/17 Vincent Sels [email protected]
|
||
| $t_config_var_value = plugin_config_get( $p_enum_name ); | ||
| $t_enum_values = MantisEnum::getAssocArrayIndexedByValues( $t_config_var_value ); | ||
|
|
||
| foreach ( $t_enum_values as $t_key => $t_value ) { | ||
| if ( $p_val == $t_key ) | ||
| return plugin_get_enum_element ( $p_enum_name, $t_key ); | ||
| } | ||
|
|
||
| return null; | ||
| } | ||
|
|
||
| /*** | ||
| * Prints the start of a region that is used as header of a collapsable section. | ||
| * @param $p_div_id string The unique name for this div. | ||
|
|
@@ -250,8 +262,7 @@ function print_resource_unavailability_list( $p_user_id ) { | |
| # First print an empty entry to avoid accidental deletion! | ||
| echo '<option value="" selected="selected"></option>'; | ||
|
|
||
| $t_config_var_value = plugin_config_get( 'unavailability_types' ); | ||
| $t_enum_values = MantisEnum::getAssocArrayIndexedByValues( $t_config_var_value ); | ||
| $t_enum_values = plugin_lang_get_enum ( 'unavailability_types' ); | ||
| while ( $t_row = db_fetch_array( $t_result ) ) { | ||
| $t_period_string = | ||
| date( config_get( 'short_date_format' ), $t_row["start_date"] ) . ' - ' . | ||
|
|
@@ -264,4 +275,4 @@ function print_resource_unavailability_list( $p_user_id ) { | |
| } | ||
| } | ||
|
|
||
| ?> | ||
| ?> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's indeed the correct place. I'd add some comments though, something like: