File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ func _init():
85
85
86
86
# Godot automatically converts spaces to tabs for multi-line strings, but tabs are invalid in
87
87
# FTL syntax. So convert tabs to four spaces. Returns an error that you should handle.
88
- var err_inline = tr_inline.add_bundle_from_text ("""
88
+ var err_inline = tr_inline.append_from_text ("""
89
89
-term = email
90
90
HELLO =
91
91
{ $unreadEmails ->
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ func _init():
6
6
var tr_foldername = load ("res://de/german-test.ftl" )
7
7
var tr_inline = TranslationFluent .new ()
8
8
tr_inline .locale = "pt_PT"
9
- var err_inline = tr_inline .add_bundle_from_text ("""
9
+ var err_inline = tr_inline .append_from_text ("""
10
10
-term = email
11
11
HELLO =
12
12
{ $unreadEmails ->
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ func _init():
6
6
var tr_foldername = load ("res://de/german-test.ftl" )
7
7
var tr_inline = TranslationFluent .new ()
8
8
tr_inline .locale = "pt_PT"
9
- var err_inline = tr_inline .add_bundle_from_text ("""
9
+ var err_inline = tr_inline .append_from_text ("""
10
10
-term = email
11
11
HELLO =
12
12
{ $unreadEmails ->
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ impl IResourceFormatLoader for ResourceFormatLoaderFluent {
73
73
}
74
74
}
75
75
76
- let err = translation. bind_mut ( ) . add_bundle_from_text ( text. to_string ( ) ) ;
76
+ let err = translation. bind_mut ( ) . append_from_text ( text. to_string ( ) ) ;
77
77
if err != GdErr :: OK {
78
78
return err. ord ( ) . to_variant ( ) ;
79
79
}
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ impl TranslationFluent {
233
233
}
234
234
235
235
#[ func]
236
- pub fn add_bundle_from_text ( & mut self , text : String ) -> GdErr {
236
+ pub fn append_from_text ( & mut self , text : String ) -> GdErr {
237
237
let bundle = match & mut self . bundle {
238
238
Some ( bundle) => bundle,
239
239
None => & mut {
You can’t perform that action at this time.
0 commit comments