Class: Kibuvits_krl171bt4_i18n_msgs_t1
- Inherits:
-
Object
- Object
- Kibuvits_krl171bt4_i18n_msgs_t1
- Includes:
- Singleton
- Defined in:
- lib/kibuvits_ruby_library_krl171bt4_.rb
Overview
The class Kibuvits_krl171bt4_i18n_msgs_t1 is a namespace for functions that are assemble human language specific strings. In the old fachioned terms: this file here is a language file.
Class Method Summary collapse
-
.s_filetype_to_humanlanguage_t1(s_language, s_path_to_the_file_candidate, s_file_candidate_type) ⇒ Object
s_filetype_to_humanlanguage_t1.
-
.s_msg_method_is_missing_t1(s_language, ob, s_method_name, a_binding = nil) ⇒ Object
s_msg_method_is_missing_t1.
-
.s_msg_negative_value_not_allowed_t1(s_language, s_x_var_name, x_var) ⇒ Object
s_msg_negative_value_not_allowed_t1.
-
.s_msg_regular_file_exists_but_it_is_not_readable_t1(s_language, s_file_path) ⇒ Object
s_msg_regular_file_exists_but_it_is_not_readable_t1.
Instance Method Summary collapse
-
#initialize ⇒ Kibuvits_krl171bt4_i18n_msgs_t1
constructor
A new instance of Kibuvits_krl171bt4_i18n_msgs_t1.
-
#s_filetype_to_humanlanguage_t1(s_language, s_path_to_the_file_candidate, s_file_candidate_type) ⇒ Object
The s_file_candidate_type is expected to hold the File.ftype(…) output.
-
#s_msg_method_is_missing_t1(s_language, ob, s_method_name, a_binding = nil) ⇒ Object
———————————————————————–.
-
#s_msg_negative_value_not_allowed_t1(s_language, s_x_var_name, x_var) ⇒ Object
———————————————————————–.
-
#s_msg_regular_file_exists_but_it_is_not_readable_t1(s_language, s_file_path) ⇒ Object
———————————————————————–.
Constructor Details
#initialize ⇒ Kibuvits_krl171bt4_i18n_msgs_t1
Returns a new instance of Kibuvits_krl171bt4_i18n_msgs_t1.
8924 8925 |
# File 'lib/kibuvits_ruby_library_krl171bt4_.rb', line 8924 def initialize end |
Class Method Details
.s_filetype_to_humanlanguage_t1(s_language, s_path_to_the_file_candidate, s_file_candidate_type) ⇒ Object
s_filetype_to_humanlanguage_t1
8962 8963 8964 8965 8966 8967 |
# File 'lib/kibuvits_ruby_library_krl171bt4_.rb', line 8962 def Kibuvits_krl171bt4_i18n_msgs_t1.s_filetype_to_humanlanguage_t1(s_language, s_path_to_the_file_candidate,s_file_candidate_type) s_out=Kibuvits_krl171bt4_i18n_msgs_t1.instance.s_filetype_to_humanlanguage_t1( s_language,s_path_to_the_file_candidate,s_file_candidate_type) return s_out end |
.s_msg_method_is_missing_t1(s_language, ob, s_method_name, a_binding = nil) ⇒ Object
s_msg_method_is_missing_t1
9037 9038 9039 9040 9041 9042 |
# File 'lib/kibuvits_ruby_library_krl171bt4_.rb', line 9037 def Kibuvits_krl171bt4_i18n_msgs_t1.s_msg_method_is_missing_t1(s_language,ob, s_method_name,a_binding=nil) s_out=Kibuvits_krl171bt4_i18n_msgs_t1.instance.s_msg_method_is_missing_t1( s_language,ob,s_method_name,a_binding) return s_out end |
.s_msg_negative_value_not_allowed_t1(s_language, s_x_var_name, x_var) ⇒ Object
s_msg_negative_value_not_allowed_t1
9071 9072 9073 9074 9075 9076 |
# File 'lib/kibuvits_ruby_library_krl171bt4_.rb', line 9071 def Kibuvits_krl171bt4_i18n_msgs_t1.s_msg_negative_value_not_allowed_t1( s_language,s_x_var_name,x_var) s_out=Kibuvits_krl171bt4_i18n_msgs_t1.instance.s_msg_negative_value_not_allowed_t1( s_language,s_x_var_name,x_var) return s_out end |
.s_msg_regular_file_exists_but_it_is_not_readable_t1(s_language, s_file_path) ⇒ Object
s_msg_regular_file_exists_but_it_is_not_readable_t1
8989 8990 8991 8992 8993 8994 |
# File 'lib/kibuvits_ruby_library_krl171bt4_.rb', line 8989 def Kibuvits_krl171bt4_i18n_msgs_t1.s_msg_regular_file_exists_but_it_is_not_readable_t1( s_language,s_file_path) s_out=Kibuvits_krl171bt4_i18n_msgs_t1.instance.s_msg_regular_file_exists_but_it_is_not_readable_t1( s_language,s_file_path) return s_out end |
Instance Method Details
#s_filetype_to_humanlanguage_t1(s_language, s_path_to_the_file_candidate, s_file_candidate_type) ⇒ Object
The s_file_candidate_type is expected to hold the File.ftype(…) output.
It returns a human language analogue to the official, english, eversion.
8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 |
# File 'lib/kibuvits_ruby_library_krl171bt4_.rb', line 8933 def s_filetype_to_humanlanguage_t1(s_language, s_path_to_the_file_candidate,s_file_candidate_type) s_out=nil case s_language when $kibuvits_krl171bt4_lc_et case s_file_candidate_type when "directory" s_out="kataloog" when "fifo" s_out="järjekord (fifo)" when "link" s_out="link" when "characterSpecial" s_out="jada-seadme-fail" when "blockSpecial" s_out="blokk-seadme-fail" when "unknown" s_out="klassifitseerumatu" else kibuvits_krl171bt4_throw("s_file_candidate_type.to_s==\""+ s_file_candidate_type.to_s+"\", but that value is "+ "not supported by this method.") end # case s_file_candidate_type else # probably s_language=="uk" s_out=$kibuvits_krl171bt4_lc_emptystring+s_file_candidate_type end # case s_language return s_out end |
#s_msg_method_is_missing_t1(s_language, ob, s_method_name, a_binding = nil) ⇒ Object
8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 |
# File 'lib/kibuvits_ruby_library_krl171bt4_.rb', line 8998 def s_msg_method_is_missing_t1(s_language,ob,s_method_name,a_binding=nil) if KIBUVITS_krl171bt4_b_DEBUG bn=binding() kibuvits_krl171bt4_typecheck bn, String, s_language kibuvits_krl171bt4_typecheck bn, String, s_method_name kibuvits_krl171bt4_typecheck bn, [NilClass,Binding], a_binding bn_1=bn bn_1=a_binding if a_binding!=nil kibuvits_krl171bt4_assert_string_min_length(bn_1,s_language,1) kibuvits_krl171bt4_assert_string_min_length(bn_1,s_method_name,1) end # if s_ob_varname=$kibuvits_krl171bt4_lc_emptystring if a_binding!=nil s_ob_varname=kibuvits_krl171bt4_s_varvalue2varname(a_binding, ob) end # if s_out=nil case s_language when $kibuvits_krl171bt4_lc_et if s_ob_varname.length==0 s_out="\nIsendil puudus meetod nimega \""+ s_method_name+"\".\n\n" else s_out="\nIsendil, millele viitab muutuja nimega \""+ s_ob_varname+"\" puudus meetod nimega \""+ s_method_name+"\".\n\n" end # if else # probably s_language=="uk" if s_ob_varname.length==0 s_out="\nThe instance is missing a method named \""+ s_method_name+"\".\n\n" else s_out="\nThe instance that is held by a variable named \""+ s_ob_varname+"\" is missing a method named \""+ s_method_name+"\".\n\n" end # if end # case s_language return s_out end |
#s_msg_negative_value_not_allowed_t1(s_language, s_x_var_name, x_var) ⇒ Object
9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 |
# File 'lib/kibuvits_ruby_library_krl171bt4_.rb', line 9046 def s_msg_negative_value_not_allowed_t1(s_language,s_x_var_name,x_var) if KIBUVITS_krl171bt4_b_DEBUG bn=binding() kibuvits_krl171bt4_typecheck bn, String, s_language kibuvits_krl171bt4_typecheck bn, String, s_x_var_name kibuvits_krl171bt4_typecheck bn, [Fixnum,Float,Bignum,Rational], x_var if (0<=x_var) kibuvits_krl171bt4_throw("x_var == "+x_var.to_s+ "\nis expected to be negative."+ "\nGUID=='e392f240-5608-4ee8-83ed-c13290a118e7'") end # if end # if s_0=$kibuvits_krl171bt4_lc_emptystring+ s_x_var_name+" == "+x_var.to_s+" < 0" s_out=nil case s_language when $kibuvits_krl171bt4_lc_et s_out=s_0+",\nkuid negatiivne väärtus pole muutujale "+ s_x_var_name+" lubatud.\n\n" else # probably s_language=="uk" s_out=s_0+",\nbut the "+s_x_var_name+" must not be negative.\n\n" end # case s_language return s_out end |
#s_msg_regular_file_exists_but_it_is_not_readable_t1(s_language, s_file_path) ⇒ Object
8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 |
# File 'lib/kibuvits_ruby_library_krl171bt4_.rb', line 8971 def s_msg_regular_file_exists_but_it_is_not_readable_t1(s_language,s_file_path) if KIBUVITS_krl171bt4_b_DEBUG bn=binding() kibuvits_krl171bt4_typecheck bn, String, s_language kibuvits_krl171bt4_typecheck bn, String, s_file_path end # if s_out=nil case s_language when $kibuvits_krl171bt4_lc_et s_out="\nOperatsioonisüsteemi kontekstis tavapärane fail, \""+ s_file_path+"\",\nleidub, kuid ta ei ole failisüsteemi juurdepääsuõiguste järgi loetav.\n\n" else # probably s_language=="uk" s_out="\nIn the contenxt of an operating system the regular file, \""+ s_file_path+"\",\nexists, but it is not readable by the file system access rights.\n\n" end # case s_language return s_out end |