Can playback video with controls, need to fix performance and reducing window size
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package com.github.gtache.autosubtitle.deepl;
|
||||
|
||||
import com.github.gtache.autosubtitle.Translator;
|
||||
import com.github.gtache.autosubtitle.subtitle.Subtitle;
|
||||
import com.github.gtache.autosubtitle.subtitle.SubtitleCollection;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* DeepL implementation of {@link Translator}
|
||||
*/
|
||||
public class DeepLTranslator implements Translator {
|
||||
|
||||
@Inject
|
||||
DeepLTranslator() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Locale getLocale(final String text) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String translate(final String text, final Locale to) {
|
||||
return "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Subtitle translate(final Subtitle subtitle, final Locale to) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SubtitleCollection translate(final SubtitleCollection collection, final Locale to) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.github.gtache.autosubtitle.modules.deepl;
|
||||
|
||||
import com.github.gtache.autosubtitle.Translator;
|
||||
import com.github.gtache.autosubtitle.deepl.DeepLTranslator;
|
||||
import dagger.Binds;
|
||||
import dagger.Module;
|
||||
|
||||
import javax.inject.Singleton;
|
||||
|
||||
/**
|
||||
* Dagger module for DeepL
|
||||
*/
|
||||
@Module
|
||||
public interface DeepLModule {
|
||||
|
||||
@Binds
|
||||
@Singleton
|
||||
Translator bindsTranslator(final DeepLTranslator translator);
|
||||
}
|
||||
8
deepl/src/main/java/module-info.java
Normal file
8
deepl/src/main/java/module-info.java
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* DeepL module for auto-subtitle
|
||||
*/
|
||||
module com.github.gtache.autosubtitle.deepl {
|
||||
requires transitive com.github.gtache.autosubtitle.core;
|
||||
exports com.github.gtache.autosubtitle.deepl;
|
||||
exports com.github.gtache.autosubtitle.modules.deepl;
|
||||
}
|
||||
Reference in New Issue
Block a user